2022-08-26 16:22:22 +00:00
|
|
|
server {
|
2022-10-02 18:27:18 +00:00
|
|
|
server_name rdrama.net;
|
|
|
|
client_max_body_size 100m;
|
2022-10-04 19:48:52 +00:00
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
proxy_set_header Host $http_host;
|
2022-08-26 16:22:22 +00:00
|
|
|
|
2022-10-02 18:27:18 +00:00
|
|
|
location / {
|
2022-10-04 19:35:02 +00:00
|
|
|
proxy_pass http://localhost:5000/;
|
2022-10-02 18:27:18 +00:00
|
|
|
}
|
|
|
|
location /socket.io {
|
2022-10-04 19:48:52 +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";
|
2022-10-06 19:07:45 +00:00
|
|
|
proxy_pass http://localhost:5001/socket.io;
|
2022-10-02 18:27:18 +00:00
|
|
|
}
|
|
|
|
location /chat {
|
2022-10-06 19:07:45 +00:00
|
|
|
proxy_pass http://localhost:5001/chat;
|
2022-10-02 18:27:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2022-10-04 19:35:02 +00:00
|
|
|
|
|
|
|
error_page 502 = /error_page/502.html;
|
|
|
|
location /error_page/ {
|
|
|
|
alias /rDrama/files/templates/errors/;
|
|
|
|
}
|
2022-10-02 18:27:18 +00:00
|
|
|
}
|