feat: deployment setup - nginx, Caddy configs, deploy script, API smoke tests
Dieser Commit ist enthalten in:
Ursprung
3cd865ccbc
Commit
a3cefeef52
4 geänderte Dateien mit 123 neuen und 0 gelöschten Zeilen
31
setup/nginx-edu.conf
Normale Datei
31
setup/nginx-edu.conf
Normale Datei
|
|
@ -0,0 +1,31 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name edu.senex.de;
|
||||
root /var/www/html/edu;
|
||||
index index.html;
|
||||
charset utf-8;
|
||||
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
try_files $uri /api/index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php-fpm:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
}
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren