chore: embed nginx config in Dockerfile

This commit is contained in:
Julien Calixte
2026-03-21 21:47:58 +01:00
parent c42600c570
commit 838082d00b
2 changed files with 28 additions and 0 deletions

27
nginx.conf Normal file
View File

@@ -0,0 +1,27 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri.html $uri/index.html $uri/index.htm $uri/ =404;
}
location /.well-known/ {
root /usr/share/nginx/html;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods "GET, OPTIONS";
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
internal;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}
}