summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.ship/Caddyfile7
-rw-r--r--.ship/service10
2 files changed, 9 insertions, 8 deletions
diff --git a/.ship/Caddyfile b/.ship/Caddyfile
index 88ed6d3..572e43d 100644
--- a/.ship/Caddyfile
+++ b/.ship/Caddyfile
@@ -1,4 +1,4 @@
1nostr-grpc.x.bdw.to { 1muxstr.x.bdw.to {
2 # Route native gRPC to port 50051 2 # Route native gRPC to port 50051
3 @grpc { 3 @grpc {
4 header Content-Type application/grpc* 4 header Content-Type application/grpc*
@@ -9,10 +9,11 @@ nostr-grpc.x.bdw.to {
9 } 9 }
10 } 10 }
11 11
12 # Everything else (Connect, WebSocket, HTML) to port 8006 12 # Everything else (Connect, WebSocket, HTML) to port 8007
13 reverse_proxy localhost:8006 { 13 reverse_proxy localhost:8007 {
14 # Enable WebSocket support 14 # Enable WebSocket support
15 header_up Upgrade {http.request.header.Upgrade} 15 header_up Upgrade {http.request.header.Upgrade}
16 header_up Connection {http.request.header.Connection} 16 header_up Connection {http.request.header.Connection}
17 } 17 }
18} 18}
19
diff --git a/.ship/service b/.ship/service
index 9305ef4..a8e30de 100644
--- a/.ship/service
+++ b/.ship/service
@@ -1,13 +1,13 @@
1[Unit] 1[Unit]
2Description=nostr-grpc 2Description=muxstr
3After=network.target 3After=network.target
4 4
5[Service] 5[Service]
6Type=simple 6Type=simple
7User=nostr-grpc 7User=muxstr
8WorkingDirectory=/var/lib/nostr-grpc 8WorkingDirectory=/var/lib/muxstr
9EnvironmentFile=/etc/ship/env/nostr-grpc.env 9EnvironmentFile=/etc/ship/env/muxstr.env
10ExecStart=/usr/local/bin/nostr-grpc -db relay.db -grpc-addr localhost:50051 -ws-addr localhost:8006 -public-url nostr-grpc.x.bdw.to 10ExecStart=/usr/local/bin/muxstr -db relay.db -grpc-addr localhost:50051 -ws-addr localhost:8007 -public-url muxstr.x.bdw.to
11Restart=always 11Restart=always
12RestartSec=5s 12RestartSec=5s
13NoNewPrivileges=true 13NoNewPrivileges=true