ft_transcendence/nginx-dev/nginx.conf
Maieul BOYER 2195207297 feat(tournament): allow the creation of a tournament
A tournament can be created (by the "owner")
Any other players can join said tournament.
The information is currently not displayed in the frontend, but does
exists and is passed to the frontend using a socket.io event
2026-01-10 16:09:04 +01:00

71 lines
1.7 KiB
Nginx Configuration File

worker_processes 1;
pid /dev/null;
daemon off;
error_log /dev/null debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
access_log /dev/stderr;
listen 8000 ssl;
server_name localhost;
ssl_certificate nginx-selfsigned.crt;
ssl_certificate_key nginx-selfsigned.key;
ssl_protocols TLSv1.3;
error_page 497 https://$http_host$request_uri;
location /api {
proxy_ssl_verify off;
proxy_pass https://localhost:8888;
}
location /api/chat/socket.io/ {
proxy_ssl_verify off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 3600s;
proxy_pass https://localhost:8888;
}
location /api/pong/socket.io/ {
proxy_ssl_verify off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 3600s;
proxy_pass https://localhost:8888;
}
location /api/ttt/socket.io/ {
proxy_ssl_verify off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 3600s;
proxy_pass https://localhost:8888;
}
location /assets {
proxy_pass http://localhost:5173;
proxy_ssl_verify off;
}
location /app {
proxy_pass http://localhost:5173/;
proxy_ssl_verify off;
}
location / {
proxy_ssl_verify off;
proxy_pass http://localhost:5173/;
}
}
}