This commit is contained in:
2026-10-13 14:16:35 +07:00
parent 716da35142
commit c7ce0195ba
4 changed files with 43 additions and 14 deletions
+31 -8
View File
@@ -9,15 +9,38 @@ proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s;
server {
listen 80;
server_name evening-detective.crabs-games.art;
return 308 https://evening-detective.crabs-games.art$request_uri;
}
listen 80 default_server;
server_name _;
server {
listen 80;
server_name evening-detective-api.crabs-games.art;
return 308 https://evening-detective-api.crabs-games.art$request_uri;
if ($host ~ ^(evening-detective\.crabs-games\.art|evening-detective-api\.crabs-games\.art)$) {
return 308 https://$host$request_uri;
}
location = /api/games/import {
client_max_body_size 1g;
client_body_timeout 1800s;
proxy_read_timeout 1800s;
proxy_send_timeout 1800s;
proxy_request_buffering off;
proxy_pass http://evening_detective_server:8090;
}
location ~ ^/api/games/[0-9]+/results-package/(apply|download)$ {
client_max_body_size 1g;
client_body_timeout 1800s;
proxy_read_timeout 1800s;
proxy_send_timeout 1800s;
proxy_request_buffering off;
proxy_pass http://evening_detective_server:8090;
}
location /api/ {
proxy_pass http://evening_detective_server:8090;
}
location / {
proxy_pass http://evening_detective_frontend:8080;
}
}
server {