summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-10 15:36:28 -0500
committerseth <[email protected]>2023-01-10 15:36:28 -0500
commiteb33edcdc85ae0474dbc1cbdb76bf37b86a3deaa (patch)
tree16733bbf67dc2bc775ffc4d94b42b9babdc83928 /config
parentf2f70244d9bc0e8c526d4c02bc169d20346e9b22 (diff)
chore: update nginx + add new file
Diffstat (limited to 'config')
-rw-r--r--config/guzzle.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/guzzle.conf b/config/guzzle.conf
index 1d54557..4aa3314 100644
--- a/config/guzzle.conf
+++ b/config/guzzle.conf
@@ -5,6 +5,8 @@ server {
root /var/www/guzzle;
index index.html;
+ rewrite /chris2 /files/chris.webp permanent;
+
location / {
try_files $uri $uri/ =404;
}
@@ -17,6 +19,11 @@ server {
autoindex on;
}
+ location /api {
+ rewrite ^/api/(.*) /$1 break;
+ proxy_pass http://127.0.0.1:7070$uri$is_args$args;
+ }
+
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