summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver/share/sites.d/church.scriptkitties
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-18 08:53:56 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-18 08:53:56 +0200
commitf64cadd81fbaebeb8496f3cd9053764fec06a64e (patch)
tree33a2c3bb7fb6c37da2b0266f7b7084dec5c4bcf0 /playbooks.d/webserver/share/sites.d/church.scriptkitties
parent342d8ef5e1d988877efbd1bc5d333640d7523570 (diff)
Various fixes to make the webserver playbook work
Diffstat (limited to 'playbooks.d/webserver/share/sites.d/church.scriptkitties')
-rw-r--r--playbooks.d/webserver/share/sites.d/church.scriptkitties77
1 files changed, 0 insertions, 77 deletions
diff --git a/playbooks.d/webserver/share/sites.d/church.scriptkitties b/playbooks.d/webserver/share/sites.d/church.scriptkitties
deleted file mode 100644
index 7227844..0000000
--- a/playbooks.d/webserver/share/sites.d/church.scriptkitties
+++ /dev/null
@@ -1,77 +0,0 @@
-server {
- listen 443 ssl http2; # managed by Certbot
- listen [::]:443 ssl http2; # managed by Certbot
-
- server_name scriptkitties.church;
-
- ssl_certificate /etc/letsencrypt/live/scriptkitties.church/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/scriptkitties.church/privkey.pem;
-
- include /etc/nginx/conf.d/certbot.conf;
- #include /etc/nginx/conf.d/headers.conf;
- include /etc/nginx/conf.d/ssl.conf;
- include mime.types;
-
- root /var/www/church.scriptkitties;
- index index.php;
-
- autoindex off;
- fastcgi_param HTTPS on;
- client_max_body_size 10m;
- client_body_buffer_size 128k;
-
- location / {
- try_files $uri /index.php?pagename=$uri&$args;
- }
-
- location ^~ /.well-known/ {
- allow all;
- rewrite ^ /index.php?pagename=$uri;
- }
-
- location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ {
- expires 30d;
- try_files $uri /index.php?pagename=$uri&$args;
- }
-
- location ~* \.php$ {
- try_files $uri =404;
-
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
-
- fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
-
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- }
-
- location ~* \.(tpl|md|tgz|log|out)$ {
- deny all;
- }
-
- location ~ /\. {
- deny all;
- }
-
- location ^~ /bin {
- deny all;
- }
-}
-
-server {
- listen 80;
- listen [::]:80;
-
- server_name scriptkitties.church;
-
- include /etc/nginx/conf.d/certbot.conf;
- include /etc/nginx/conf.d/headers.conf;
-
- location / {
- return 301 https://$host$request_uri;
- }
-}