From b16137f238fa40815a4af4c8336d208c98a7cbff Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Dec 2025 00:00:49 +0000 Subject: [PATCH] nginx config for loomio --- nginx/amargi.us | 12 ++++++++++++ nginx/channels.amargi.us | 26 ++++++++++++++++++++++++++ nginx/hocuspocus.amargi.us | 21 +++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 nginx/amargi.us create mode 100644 nginx/channels.amargi.us create mode 100644 nginx/hocuspocus.amargi.us diff --git a/nginx/amargi.us b/nginx/amargi.us new file mode 100644 index 0000000..1322115 --- /dev/null +++ b/nginx/amargi.us @@ -0,0 +1,12 @@ +server { + listen 80; + server_name amargi.us; + + location / { + proxy_pass http://x.x.x.x:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} diff --git a/nginx/channels.amargi.us b/nginx/channels.amargi.us new file mode 100644 index 0000000..a10d4f9 --- /dev/null +++ b/nginx/channels.amargi.us @@ -0,0 +1,26 @@ +server { + listen 80; + server_name channels.amargi.us; + + location /socket.io/ { + proxy_pass http://x.x.x.x:3500; # channels container + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_read_timeout 3600; + proxy_send_timeout 3600; + proxy_buffering off; + } + + # Nothing else should live on this host + location / { + return 404; + } +} diff --git a/nginx/hocuspocus.amargi.us b/nginx/hocuspocus.amargi.us new file mode 100644 index 0000000..60abc44 --- /dev/null +++ b/nginx/hocuspocus.amargi.us @@ -0,0 +1,21 @@ +server { + listen 80; + server_name hocuspocus.amargi.us; + + location / { + proxy_pass http://x.x.x.x:3300; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_read_timeout 3600; + proxy_send_timeout 3600; + proxy_buffering off; + } +}