1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Merge branch 'test-nginx'

This commit is contained in:
MoonTestUse1
2024-12-25 05:13:10 +06:00
2 changed files with 22 additions and 22 deletions

View File

@@ -1,25 +1,25 @@
user nginx; server {
worker_processes auto; listen 80;
server_name localhost;
error_log /var/log/nginx/error.log notice; root /usr/share/nginx/html;
pid /var/run/nginx.pid; index index.html;
events { location / {
worker_connections 1024; try_files $uri $uri/ /index.html;
} expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
http { location /api/ {
include /etc/nginx/mime.types; proxy_pass http://backend:8000/api/;
default_type application/octet-stream; proxy_http_version 1.1;
proxy_set_header Host $host;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' proxy_set_header X-Real-IP $remote_addr;
'$status $body_bytes_sent "$http_referer" ' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
'"$http_user_agent" "$http_x_forwarded_for"'; proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 60s;
access_log /var/log/nginx/access.log main; proxy_send_timeout 60s;
proxy_read_timeout 60s;
sendfile on; }
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
} }

View File

@@ -22,4 +22,4 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
} }