2025-11-04
This commit is contained in:
parent
e4eaf6404a
commit
66397de267
101 changed files with 2573 additions and 58 deletions
52
containers/conf/angie/haikuatelier.conf
Executable file
52
containers/conf/angie/haikuatelier.conf
Executable file
|
|
@ -0,0 +1,52 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /var/www/wordpress/web;
|
||||
index index.html index.php;
|
||||
|
||||
access_log /var/log/angie/haikuatelier-access.log;
|
||||
error_log /var/log/angie/haikuatelier-error.log;
|
||||
|
||||
# Remove X-Powered-By, which is an information leak
|
||||
fastcgi_hide_header X-Powered-By;
|
||||
|
||||
# Point d'accès pour vérifier la santé du conteneur Angie.
|
||||
location = /health {
|
||||
access_log off;
|
||||
add_header "Content-Type" "text/plain";
|
||||
return 200 "UP";
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass wordpress:9000;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include /etc/angie/fastcgi.conf;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
|
||||
expires 365d;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location * {
|
||||
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
|
||||
add_header "Access-Control-Allow-Origin" "*";
|
||||
add_header "Cross-Origin-Opener-Policy" "unsafe-none";
|
||||
add_header "Cross-Origin-Resource-Policy" "cross-origin";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue