serverproject-dev / solidweb.me

Community Solid Server
https://solidweb.me
MIT License
0 stars 0 forks source link

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

Open ewingson opened 6 months ago

ewingson commented 6 months ago

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 commented 6 months ago

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$" ]
    }
  ]
}