deploy / deploy (push) Successful in 1m24s
rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling replace the theme text toggle with animated sun/moon icons restructure the CRM API into config, middleware, models, routes, services and utils layers redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons update Docker/Nginx publishing, Makefile targets, shared UI polish and docs Co-authored-by: Gitea Actions <-[email protected]>
67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name _;
|
|
|
|
# Redirections relatives (`/services/`) : derrière un proxy ou un port
|
|
# publié, un Location absolu sans port casserait la navigation.
|
|
absolute_redirect off;
|
|
|
|
root /usr/share/nginx/html/current;
|
|
index index.html;
|
|
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_min_length 1024;
|
|
gzip_types text/plain text/css application/javascript application/json application/xml image/svg+xml image/webp application/manifest+json;
|
|
|
|
location = /healthz {
|
|
access_log off;
|
|
default_type text/plain;
|
|
return 200 "ok\n";
|
|
}
|
|
|
|
# Assets fingerprintés par Next.js : cache long et immuable.
|
|
location /_next/static/ {
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
include /etc/nginx/snippets/cache-immutable.conf;
|
|
expires 1y;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# Anciens assets Vite (conservés pour les releases encore servies).
|
|
location /assets/ {
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
include /etc/nginx/snippets/cache-immutable.conf;
|
|
expires 1y;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# Image Open Graph générée par Next.js : fichier sans extension.
|
|
location = /opengraph-image {
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
include /etc/nginx/snippets/cache-immutable.conf;
|
|
default_type image/png;
|
|
expires 1y;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# Page d'erreur générée par l'export statique Next.js.
|
|
location = /404.html {
|
|
internal;
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
include /etc/nginx/snippets/cache-no-cache.conf;
|
|
}
|
|
|
|
location / {
|
|
include /etc/nginx/snippets/security-headers.conf;
|
|
include /etc/nginx/snippets/cache-no-cache.conf;
|
|
# Export statique : chaque route est un dossier avec son index.html.
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
}
|