diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index 1070ee1..da9b593 100755 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -1,29 +1,7 @@ #!/bin/sh set -e -cat /root/start9/config.yaml - -CACHE_RELAY_ENABLED=$(yq '.enable-cache-relay' /root/start9/config.yaml) -#CACHE_RELAY=$(yq '.cache-relay' /root/start9/config.yaml) -CACHE_RELAY=nostr.embassy:8080 - -PROXY_PASS_BLOCK="" -if [ -n "$CACHE_RELAY" ] && [ "$CACHE_RELAY_ENABLED" = "true" ]; then - echo "Cache relay set to $CACHE_RELAY" - sed -i 's/CACHE_RELAY_ENABLED = false/CACHE_RELAY_ENABLED = true/g' /usr/share/nginx/html/index.html - PROXY_PASS_BLOCK="$PROXY_PASS_BLOCK - location /local-relay { - proxy_pass http://$CACHE_RELAY/; - proxy_http_version 1.1; - proxy_set_header Upgrade \$http_upgrade; - proxy_set_header Connection "upgrade"; - } - " -else - echo "No cache relay set" -fi - -echo "Starting noStrudel ..." +printf "\n\n [i] Starting noStrudel ...\n\n" CONF_FILE="/etc/nginx/conf.d/default.conf" NGINX_CONF="server { @@ -40,8 +18,6 @@ server { server_name localhost; merge_slashes off; - $PROXY_PASS_BLOCK - root /usr/share/nginx/html; index index.html index.htm; diff --git a/manifest.yaml b/manifest.yaml index e231253..78752ad 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -66,14 +66,7 @@ interfaces: protocols: - tcp - http -dependencies: - nostr: - version: ">0.8.0" - critical: true - requirement: - type: "opt-in" - how: Can use the browser cache or local relay - description: Optionally used to cache events +dependencies: {} backup: create: type: docker diff --git a/scripts/procedures/getConfig.ts b/scripts/procedures/getConfig.ts index fe3f089..2948d64 100644 --- a/scripts/procedures/getConfig.ts +++ b/scripts/procedures/getConfig.ts @@ -2,21 +2,4 @@ import { compat, types as T } from "../deps.ts"; -export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({ - "enable-cache-relay": { - name: "Use local relay for caching", - description: - "If you enable the option, noStrudel will cache Nostr events on your personal Nostr relay, which is fast and makes the cache available to all your logged in clients. If you disable this option, noStrudel will instead cache Nostr events in the browser's storage, which is slower and does not sync across clients.", - type: "boolean", - default: false, - }, - "cache-relay": { - name: "Cache Relay", - description: "A local relay to use for caching events", - type: "pointer", - subtype: "package", - "package-id": "nostr", - target: "lan-address", - interface: "websocket", - }, -}); +export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({});