Making the whole app into one docker image for easier usage (#104)

This commit is contained in:
Saeed Vaziry
2024-02-23 15:28:41 +01:00
committed by GitHub
parent 682da0d6d5
commit 59e8c82e5c
13 changed files with 314 additions and 50 deletions

View File

@ -0,0 +1,28 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /var/www/html/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}