1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/docker/nginx/conf.d/default.conf
2024-12-25 04:08:33 +06:00

27 lines
632 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name itformhelp.ru www.itformhelp.ru;
root /var/www/html;
index index.html;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backend:8000/api/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}