feat(A08.P001): nginx configurado para acceso web a /notas/ en srv-ns8
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>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
85645ce0b8
commit
cad987ce7f
@@ -0,0 +1,39 @@
|
||||
# Archivo: notas.conf
|
||||
# Ubicación: /servicios/nginx/conf.d/notas.conf
|
||||
# Este bloque de NGINX sirve el sitio estático del Generador de Notas
|
||||
# (Fragmento sin server block - se incluye desde ns8.conf)
|
||||
|
||||
# Notas - Generador de Notas (/notas)
|
||||
location /notas/ {
|
||||
alias /home/rmonla/Documentos/GitHub/dtic-DIIAA/docs/ambito/dtic-NOTAS/app/;
|
||||
|
||||
# Habilitar index.html
|
||||
index index.html;
|
||||
|
||||
# Try files para SPA (soportar rutas sin extensión)
|
||||
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 - Acceso a plantillas (opcional, para cargar desde la web)
|
||||
location /notas/plantillas/ {
|
||||
alias /home/rmonla/Documentos/GitHub/dtic-DIIAA/docs/ambito/dtic-NOTAS/plantillas/;
|
||||
|
||||
# Permitir descarga de archivos .md
|
||||
types {
|
||||
text/markdown md;
|
||||
}
|
||||
}
|
||||
|
||||
# Notas - Acceso a contenido de ejemplo (opcional)
|
||||
location /notas/contenido/ {
|
||||
alias /home/rmonla/Documentos/GitHub/dtic-DIIAA/docs/ambito/dtic-NOTAS/contenido/;
|
||||
|
||||
types {
|
||||
text/markdown md;
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,26 @@ server {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user