diff options
Diffstat (limited to '.ship')
| -rw-r--r-- | .ship/Caddyfile | 7 | ||||
| -rw-r--r-- | .ship/service | 10 |
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 @@ | |||
| 1 | nostr-grpc.x.bdw.to { | 1 | muxstr.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] |
| 2 | Description=nostr-grpc | 2 | Description=muxstr |
| 3 | After=network.target | 3 | After=network.target |
| 4 | 4 | ||
| 5 | [Service] | 5 | [Service] |
| 6 | Type=simple | 6 | Type=simple |
| 7 | User=nostr-grpc | 7 | User=muxstr |
| 8 | WorkingDirectory=/var/lib/nostr-grpc | 8 | WorkingDirectory=/var/lib/muxstr |
| 9 | EnvironmentFile=/etc/ship/env/nostr-grpc.env | 9 | EnvironmentFile=/etc/ship/env/muxstr.env |
| 10 | ExecStart=/usr/local/bin/nostr-grpc -db relay.db -grpc-addr localhost:50051 -ws-addr localhost:8006 -public-url nostr-grpc.x.bdw.to | 10 | ExecStart=/usr/local/bin/muxstr -db relay.db -grpc-addr localhost:50051 -ws-addr localhost:8007 -public-url muxstr.x.bdw.to |
| 11 | Restart=always | 11 | Restart=always |
| 12 | RestartSec=5s | 12 | RestartSec=5s |
| 13 | NoNewPrivileges=true | 13 | NoNewPrivileges=true |
