nginx config for loomio
This commit is contained in:
parent
b53c431c67
commit
b16137f238
3 changed files with 59 additions and 0 deletions
12
nginx/amargi.us
Normal file
12
nginx/amargi.us
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
26
nginx/channels.amargi.us
Normal file
26
nginx/channels.amargi.us
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
21
nginx/hocuspocus.amargi.us
Normal file
21
nginx/hocuspocus.amargi.us
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue