2023-01-01 02:10:25 +00:00
|
|
|
server {
|
|
|
|
server_name localhost;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2023-10-16 17:43:31 +00:00
|
|
|
proxy_set_header Host $http_host;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-02-09 08:11:34 +00:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2022-08-26 16:22:22 +00:00
|
|
|
|
2023-01-01 02:10:25 +00:00
|
|
|
location / {
|
2023-03-17 13:09:51 +00:00
|
|
|
proxy_pass http://localhost:5000/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
location /socket.io {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_pass http://localhost:5001/socket.io;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
location /chat {
|
|
|
|
proxy_pass http://localhost:5001/chat;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-09-26 20:05:39 +00:00
|
|
|
location /reply {
|
|
|
|
proxy_pass http://localhost:5001/reply;
|
|
|
|
include includes/headers;
|
|
|
|
}
|
2023-09-24 22:12:42 +00:00
|
|
|
|
2023-01-01 02:10:25 +00:00
|
|
|
location =/offline.html {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/templates/errors/offline.html;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-02-20 18:34:58 +00:00
|
|
|
error_page 404 = /404.html;
|
|
|
|
location =/404.html {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/templates/errors/rDrama/404.html;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-02-20 18:34:58 +00:00
|
|
|
add_header Cache-Control "no-store";
|
|
|
|
}
|
2023-01-01 02:10:25 +00:00
|
|
|
error_page 502 = /502.html;
|
|
|
|
location =/502.html {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/templates/errors/rDrama/502.html;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/headers;
|
2023-01-01 02:10:25 +00:00
|
|
|
add_header Cache-Control "no-store";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-17 13:09:51 +00:00
|
|
|
location /images/ {
|
|
|
|
alias /images/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-21 10:36:21 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /chat_images/ {
|
|
|
|
alias /chat_images/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /videos/ {
|
|
|
|
alias /videos/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /audio/ {
|
|
|
|
alias /audio/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /songs/ {
|
|
|
|
alias /songs/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-05-04 20:02:17 +00:00
|
|
|
proxy_hide_header Cache-Control;
|
2023-05-04 19:39:15 +00:00
|
|
|
add_header Cache-Control "max-age=2678400";
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /asset_submissions/ {
|
|
|
|
alias /asset_submissions/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /archives/ {
|
|
|
|
alias /archives/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
|
2023-03-17 13:09:51 +00:00
|
|
|
location /assets/ {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /i/ {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/images/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
2023-03-17 13:09:51 +00:00
|
|
|
location /e/ {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/images/emojis/;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location =/robots.txt {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/robots.txt;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
location =/icon.webp {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/images/rDrama/icon.webp;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
location =/favicon.ico {
|
2023-07-26 18:29:45 +00:00
|
|
|
alias /d/files/assets/images/rDrama/icon.webp;
|
2023-09-08 23:03:41 +00:00
|
|
|
include includes/serve-static;
|
2023-01-01 02:10:25 +00:00
|
|
|
}
|
|
|
|
}
|