This commit is contained in:
beseira13
2026-01-19 12:03:44 -03:00
parent 7fb80533c9
commit b85c365412
27 changed files with 5888 additions and 0 deletions

34
nginx.conf Normal file
View File

@@ -0,0 +1,34 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Gzip compression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
}
# Proxy for Peru API to avoid CORS
location /api-peru/ {
proxy_pass https://ws-posvirtual-peru.sial.cl/;
proxy_set_header Host ws-posvirtual-peru.sial.cl;
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;
# SSL settings
proxy_ssl_server_name on;
proxy_ssl_session_reuse off;
}
# Error handling
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}