diff --git a/compose.yml b/compose.yml index abfeb2d..fc1dde6 100644 --- a/compose.yml +++ b/compose.yml @@ -9,6 +9,7 @@ services: - "127.0.0.1:2019:2019" volumes: - ./etc/caddy:/etc/caddy + - ./srv:/srv - caddy_data:/data - caddy_config:/config networks: @@ -49,6 +50,6 @@ volumes: networks: fogtype: ipam: - driver: default - config: - - subnet: 172.30.0.0/24 + driver: default + config: + - subnet: 172.30.0.0/24 diff --git a/etc/caddy/Caddyfile b/etc/caddy/Caddyfile index 16e0790..bbf4bb0 100644 --- a/etc/caddy/Caddyfile +++ b/etc/caddy/Caddyfile @@ -5,10 +5,10 @@ read.keiu.net { redir https://rad.fogtype.com{uri} 308 } fogtype.com { - reverse_proxy http://gts:8080 - reverse_proxy /.well-known/nostr.json https://archive.fogtype.com { - header_up Host {upstream_hostport} + handle /.well-known/nostr.json { + file_server } + reverse_proxy http://gts:8080 } www.fogtype.com { redir https://fogtype.com{uri} 308 diff --git a/srv/.well-known/nostr.json b/srv/.well-known/nostr.json new file mode 100644 index 0000000..8eedf75 --- /dev/null +++ b/srv/.well-known/nostr.json @@ -0,0 +1,10 @@ +{ + "names": { + "nebel": "c90a759ab3bc4006f1fe5684a1a0278b41e868580932ad67760f3e52db6112d0" + }, + "relays": { + "c90a759ab3bc4006f1fe5684a1a0278b41e868580932ad67760f3e52db6112d0": [ + "wss://relay.beta.fogtype.com" + ] + } +}