Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation pm2.io interface and new config-mashlib.json (relative paths) #3

Open
ewingson opened this issue Mar 21, 2024 · 1 comment

Comments

@ewingson
Copy link
Member

  • the IP of the machine is 46.163.118.221
  • we are using https://pm2.io/
  • the current directory (./) is /data/css/Recipes/mashlib/node_modules/
  • in this directory the file pm3.sh is located
  • this file has the content
npx @solid/community-server -c @css:config/config-mashlib.json -f /var/www/solidweb.me -b https://solidweb.me/
  • the pm2 service is linked with the command pm2 start pm3.sh
  • a screenshot

image_thursday_github

effects/outcome
no 502s now for est. 5 days
the solidOS frontend does NOT work
using the server as backend works fine
tested with: Media_Kraken, Umai, solidcryptpad and sleepy.bike

@ewingson ewingson changed the title Documentation installation of pm2 monitoring service Documentation pm2.io interface and new config-mashlib.json (relative paths) Mar 23, 2024
@ewingson
Copy link
Member Author

pm2 is running on pm2.io website.
new config-mashlib as below.
we changed some relative paths.

{
  "@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld"
  ],
  "import": [
    "css:config/app/init/default.json",
    "css:config/app/main/default.json",
    "css:config/app/setup/disabled.json",
    "css:config/app/variables/default.json",
    "css:config/http/handler/default.json",
    "css:config/http/middleware/default.json",
    "css:config/http/notifications/all.json",
    "css:config/http/server-factory/http.json",
    "css:config/http/static/default.json",
    "css:config/identity/access/public.json",
    "css:config/identity/email/default.json",
    "css:config/identity/handler/default.json",
    "css:config/identity/ownership/token.json",
    "css:config/identity/pod/static.json",
    "css:config/identity/registration/enabled.json",
    "css:config/ldp/authentication/dpop-bearer.json",
    "css:config/ldp/authorization/webacl.json",
    "css:config/ldp/handler/default.json",
    "css:config/ldp/metadata-parser/default.json",
    "css:config/ldp/metadata-writer/default.json",
    "css:config/ldp/modes/default.json",
    "css:config/storage/backend/file.json",
    "css:config/storage/key-value/resource-store.json",
    "css:config/storage/middleware/default.json",
    "css:config/util/auxiliary/acl.json",
    "css:config/util/identifiers/suffix.json",
    "css:config/util/logging/winston.json",
    "css:config/util/representation-conversion/default.json",
    "css:config/util/resource-locker/file.json",
    "css:config/util/variables/default.json"
  ],
  "@graph": [
    {
      "comment": [
        "A filesystem-based server with Databrowser as UI.",
        "Derived from config/file-no-setup.json"
      ]
    },
    {
      "comment": "Serve Databrowser as default representation",
      "@id": "urn:solid-server:default:DefaultUiConverter",
      "@type": "ConstantConverter",
      "contentType": "text/html",
      "filePath": "./mashlib/dist/databrowser.html",
      "options_container": true,
      "options_document": true,
      "options_minQuality": 1,
      "options_disabledMediaRanges": [
        "image/*",
        "application/pdf"
      ]
    },
    {
      "comment": "Serve Mashlib static files.",
      "@id": "urn:solid-server:default:StaticAssetHandler",
      "@type": "StaticAssetHandler",
      "assets": [
        {
          "StaticAssetHandler:_assets_key": "/mash.css",
          "StaticAssetHandler:_assets_value": "./mashlib/dist/mash.css"
        },
        {
          "StaticAssetHandler:_assets_key": "/mashlib.min.js",
          "StaticAssetHandler:_assets_value": "./mashlib/dist/mashlib.min.js"
        },
        {
          "StaticAssetHandler:_assets_key": "/mashlib.min.js.map",
          "StaticAssetHandler:_assets_value": "./mashlib/dist/mashlib.min.js.map"
        }
      ]
    },
    {
      "@id": "urn:solid-server:default:QuotaStrategy",
      "PodQuotaStrategy:_limit_amount": 50000000,
      "PodQuotaStrategy:_limit_unit": "bytes"
    },
    {
      "@id": "urn:solid-server:default:SizeReporter",
      "FileSizeReporter:_ignoreFolders": [ "^/\\.internal$" ]
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant