summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-07 02:53:40 -0500
committerseth <[email protected]>2023-01-07 02:53:40 -0500
commit3f718c3927d13418674df1b858cfea77d48400c6 (patch)
treea4483f95ba25d52b56d2fc10441e995737e7e7b2 /config
parent445ace8236270fd31b90bb70420b85783f91cc4e (diff)
chore: add nginx config
Diffstat (limited to 'config')
-rw-r--r--config/guzzle.conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/config/guzzle.conf b/config/guzzle.conf
new file mode 100644
index 0000000..1d54557
--- /dev/null
+++ b/config/guzzle.conf
@@ -0,0 +1,48 @@
+server {
+ server_name guzzle.gay www.guzzle.gay;
+
+
+ root /var/www/guzzle;
+ index index.html;
+
+ location / {
+ try_files $uri $uri/ =404;
+ }
+
+ location /lul.html {
+ add_header X-Frame-Options DENY;
+ }
+
+ location /files {
+ autoindex on;
+ }
+
+ listen [::]:443 ssl ipv6only=on; # managed by Certbot
+ listen 443 ssl; # managed by Certbot
+ ssl_certificate /etc/letsencrypt/live/guzzle.gay/fullchain.pem; # managed by Certbot
+ ssl_certificate_key /etc/letsencrypt/live/guzzle.gay/privkey.pem; # managed by Certbot
+ include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
+ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
+
+
+}
+server {
+ if ($host = www.guzzle.gay) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+
+ if ($host = guzzle.gay) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+
+ listen 80;
+ listen [::]:80;
+ server_name guzzle.gay www.guzzle.gay;
+ return 404; # managed by Certbot
+
+
+
+
+}