From eb33edcdc85ae0474dbc1cbdb76bf37b86a3deaa Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 10 Jan 2023 15:36:28 -0500 Subject: chore: update nginx + add new file --- .gitattributes | 1 + .gitignore | 1 - config/guzzle.conf | 7 +++++++ src/files/chris.webp | Bin 0 -> 1950 bytes src/files/rickroll.mp4 | Bin 0 -> 20247438 bytes 5 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/files/chris.webp create mode 100644 src/files/rickroll.mp4 diff --git a/.gitattributes b/.gitattributes index 60256f2..68a2ea2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ * text eol=lf *.mp4 -text *.gif -text +*.webp -text diff --git a/.gitignore b/.gitignore index 2f22150..a9b9cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ push -files/ \ No newline at end of file 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 diff --git a/src/files/chris.webp b/src/files/chris.webp new file mode 100644 index 0000000..d313814 Binary files /dev/null and b/src/files/chris.webp differ diff --git a/src/files/rickroll.mp4 b/src/files/rickroll.mp4 new file mode 100644 index 0000000..b988dc4 Binary files /dev/null and b/src/files/rickroll.mp4 differ -- cgit v1.2.3