save server stuff

This commit is contained in:
Joey Kimsey
2024-12-14 05:54:54 -05:00
parent ccad15c0b8
commit c2d0f04ea4
5 changed files with 297 additions and 0 deletions

35
server/new.site.conf Normal file
View File

@ -0,0 +1,35 @@
upstream php {
server unix:/run/php/php8.2-fpm.sock;
}
server {
listen 80;
listen [::]:80;
server_name allthebookmarks.com;
include snippets/well-known;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name allthebookmarks.com;
include snippets/ssl-params.conf;
root /var/www/allthebookmarks.com;
index index.php;
client_max_body_size 100M;
autoindex off;
# custom TTP code
include snippets/ttp.conf;
location ~* \.php$ {
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
}
}