rDrama/nginx.txt

36 lines
727 B
Plaintext
Raw Normal View History

server {
2022-10-02 18:27:18 +00:00
server_name rdrama.net;
client_max_body_size 100m;
2022-10-04 01:06:57 +00:00
listen 80;
listen [::]:80;
2022-10-02 18:27:18 +00:00
location / {
2022-10-04 01:06:57 +00:00
proxy_set_header Host $http_host;
proxy_pass http://rDrama:5000/;
2022-10-02 18:27:18 +00:00
}
location /socket.io {
2022-10-04 01:06:57 +00:00
proxy_set_header Host $http_host;
2022-10-02 18:27:18 +00:00
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://127.0.0.1:5001/socket.io;
}
location /chat {
proxy_pass http://127.0.0.1:5001/chat;
}
location /images/ {
include includes/serve-static;
}
location /videos/ {
include includes/serve-static;
}
location /audio/ {
include includes/serve-static;
}
location /asset_submissions/ {
include includes/serve-static;
}
}