add sample nginx.conf

This commit is contained in:
Luna Mendes 2018-07-06 03:31:12 -03:00
parent 6d8af8aef3
commit 1e8672656c
1 changed files with 22 additions and 0 deletions

22
nginx.conf Normal file
View File

@ -0,0 +1,22 @@
# Main litecord HTTP proxy.
server {
server_name main.somewhere;
location / {
proxy_pass http://localhost:5000;
}
}
# Main litecord websocket proxy.
server {
server_name websocket.somewhere;
location / {
proxy_pass http://localhost:5001;
# those options are required for websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}