Test nginx conf
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
b8efa6a19f
commit
9dab268a80
|
@ -15,20 +15,6 @@ server {
|
|||
ssl_certificate /etc/nginx/certs/server.crt; # Ruta al certificado
|
||||
ssl_certificate_key /etc/nginx/certs/server.key; # Ruta a la clave
|
||||
|
||||
# Reescritura para corregir las URLs con doble barra, pero sin cambiar el path de los archivos
|
||||
# Reescribir URL con doble barra
|
||||
location /opengnsys/rest/ {
|
||||
# Eliminar la doble barra cuando exista entre /rest/ y /ous/
|
||||
rewrite ^(/opengnsys/rest)//(.*)$ $1/$2 break;
|
||||
|
||||
# Proxy hacia el backend
|
||||
proxy_pass https://127.0.0.1:8443;
|
||||
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;
|
||||
}
|
||||
|
||||
# Bloque principal para archivos
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
|
|
Loading…
Reference in New Issue