Add nginx.conf

This commit is contained in:
Arseniy Romenskiy 2025-12-27 06:37:05 +03:00
parent b200f61868
commit 5fa0b0c4b9

19
nginx.conf Normal file
View file

@ -0,0 +1,19 @@
server {
listen 80 default_server;
server_name _;
#server_name example.com;
root /var/www/wg/;
index index.html;
#location / {
# try_files $uri $uri/ /index.html;
#}
location /api/ {
proxy_pass http://127.0.0.1:5000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}