Configuración de nginx para servir el Generador de Notas: Cambios realizados: - servicios/nginx/conf.d/ns8.conf: Agregados locations /notas/ y /notas/plantillas/ - servicios/nginx/conf.d/notas.conf: Configuración modular creada Acceso web: - https://ns8.frlr.utn.edu.ar/notas/ - Generador de Notas - https://ns8.frlr.utn.edu.ar/notas/plantillas/ - Plantillas markdown Documentación actualizada: - A08.P001_Sistema-Web-Notas.md: Fase 4 completada - A08_dtic-NOTAS.md: Tabla de nodos y acceso web Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
138 lines
3.2 KiB
Plaintext
138 lines
3.2 KiB
Plaintext
server {
|
|
|
|
server_name ns8.frlr.utn.edu.ar 100.111.195.4 190.114.205.18 srvns8.tail982245.ts.net srv-ns8.tail.dasuten srv-ns8.tail.rmonla;
|
|
|
|
root /var/www/html;
|
|
index index.html index.htm;
|
|
|
|
# -------------------------
|
|
# CONFIGURACIÓN BASE PROXY
|
|
# -------------------------
|
|
|
|
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;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
# Websocket support
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
# -------------------------
|
|
# SERVICIOS
|
|
# -------------------------
|
|
|
|
# Servicio principal
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3001;
|
|
}
|
|
|
|
# APIDS
|
|
location = /apids {
|
|
return 301 /apids/;
|
|
}
|
|
|
|
location /apids/ {
|
|
proxy_pass http://127.0.0.1:7071/;
|
|
|
|
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;
|
|
}
|
|
|
|
# Portainer
|
|
location /portainer/ {
|
|
proxy_pass http://127.0.0.1:9000/;
|
|
}
|
|
|
|
# SysACAD
|
|
location /sysacad/ {
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
}
|
|
|
|
# Bitácoras
|
|
location /bitacoras/ {
|
|
proxy_pass http://127.0.0.1:5173/;
|
|
}
|
|
|
|
# Notas - Generador de Notas (sitio estático)
|
|
location /notas/ {
|
|
alias /home/rmonla/Documentos/GitHub/dtic-DIIAA/docs/ambito/dtic-NOTAS/app/;
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
# Headers para correcto renderizado
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
add_header Pragma "no-cache";
|
|
add_header Expires "0";
|
|
}
|
|
|
|
# Notas - Plantillas (acceso opcional)
|
|
location /notas/plantillas/ {
|
|
alias /home/rmonla/Documentos/GitHub/dtic-DIIAA/docs/ambito/dtic-NOTAS/plantillas/;
|
|
types {
|
|
text/markdown md;
|
|
}
|
|
}
|
|
|
|
# TinyFileManager
|
|
location /apps/ {
|
|
client_max_body_size 20G;
|
|
proxy_pass http://127.0.0.1:8082/;
|
|
}
|
|
|
|
# -------------------------
|
|
# OPTIMIZACIONES
|
|
# -------------------------
|
|
|
|
proxy_connect_timeout 60s;
|
|
proxy_send_timeout 60s;
|
|
proxy_read_timeout 60s;
|
|
|
|
proxy_buffering off;
|
|
|
|
# -------------------------
|
|
# SSL
|
|
# -------------------------
|
|
|
|
listen 443 ssl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ns8.frlr.utn.edu.ar/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/ns8.frlr.utn.edu.ar/privkey.pem;
|
|
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
}
|
|
|
|
# -------------------------
|
|
# HTTP -> HTTPS REDIRECT
|
|
# -------------------------
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name ns8.frlr.utn.edu.ar 100.111.195.4 190.114.205.18 srvns8.tail982245.ts.net srv-ns8.tail.dasuten srv-ns8.tail.rmonla 10.0.10.8;
|
|
|
|
location /apps/ {
|
|
client_max_body_size 20G;
|
|
proxy_pass http://127.0.0.1:8082/;
|
|
}
|
|
|
|
location = /s.txt {
|
|
root /var/www/html;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
}
|