Set-OPS-Public/roles/app_statique/templates/site.conf.j2
Daniel Allaire 3fed806366 applications clientes : deux en production, et la releve recoit leur code
Le dorsal confie chaque application cliente au role de son environnement
(app_python, app_statique) ; le controleur lit son depot a la forge du site
(scripts/app_source.py) et le depose au commit exact. Une sonde
app-<application> par application remplace apps-servies et sites-servis.
Une application cliente ne nomme plus son dorsal (instancier, P67).

En production chez Chezlepro : monregistraire (nom interne, par l'edge) et
le site web de Chezlepro (offre.chezlepro.ca, par le web frontal).

serveur_powerdns vide le cache de l'Unbound colocalise quand une zone a
bouge, ou quand son empreinte _plancher differe de celle de l'autoritatif.

Pas 5 (applications-clientes.md 7) : make applications-porter, et
make publier apres le genome, portent le depot de chaque application a la
forge du site qui heberge la releve, prive, en avance rapide seulement.
Pose vers TechnoLibre. Le runner lit aussi les depots de ses applications
(forge_cles, forge_etancheite).

CHANGELOG 259 a 265.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 23:23:18 -05:00

32 lines
1.2 KiB
Django/Jinja

# Site statique {{ app_statique_application.nom }} — genere par Set-OPS (role app_statique). Ne pas editer.
# Source : {{ app_statique_application.source }} a {{ app_statique_application.version }} ({{ app_statique_application.commit }})
# Sert derriere le frontal ou l'edge (TLS termine la-bas).
server {
listen {{ app_statique_port_front }};
server_name {{ app_statique_application.noms | join(' ') }};
root {{ app_statique_racine | trim }};
index index.html;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Content-Security-Policy "{{ app_statique_csp | trim }}" always;
gzip on;
gzip_types text/css application/javascript text/html image/svg+xml;
gzip_min_length 1024;
location /assets/ {
expires 7d;
add_header Cache-Control "public";
}
location / {
try_files $uri $uri/ $uri.html =404;
}
error_page 404 /404.html;
access_log /var/log/nginx/{{ app_statique_vhost }}.access.log;
error_log /var/log/nginx/{{ app_statique_vhost }}.error.log;
}