wms-be/docker/nginx/default.conf

29 lines
833 B
Plaintext

server {
listen 80;
server_name localhost;
location / {
proxy_pass http://app:8888;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header Authorization $http_authorization;
}
# Tambahkan route khusus untuk /admin/logs
location /admin/logs {
proxy_pass http://app:8888;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
}