diff options
author | JoeServ <bousset.rudy@gmail.com> | 2022-05-16 12:48:08 +0000 |
---|---|---|
committer | JoeServ <bousset.rudy@gmail.com> | 2022-05-16 12:48:08 +0000 |
commit | be098ab2b8c211af475ff8d605b7279bdb05dc6d (patch) | |
tree | 3a5813a8ccf346e61dcbe64dde0bd6bd624e7836 /usr/local/etc/nginx | |
parent | udpate (diff) | |
download | joe-conf-be098ab2b8c211af475ff8d605b7279bdb05dc6d.tar.gz joe-conf-be098ab2b8c211af475ff8d605b7279bdb05dc6d.tar.bz2 joe-conf-be098ab2b8c211af475ff8d605b7279bdb05dc6d.tar.xz joe-conf-be098ab2b8c211af475ff8d605b7279bdb05dc6d.tar.zst joe-conf-be098ab2b8c211af475ff8d605b7279bdb05dc6d.zip |
update
Diffstat (limited to 'usr/local/etc/nginx')
-rw-r--r-- | usr/local/etc/nginx/nginx.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf index 3c48000..3febbf9 100644 --- a/usr/local/etc/nginx/nginx.conf +++ b/usr/local/etc/nginx/nginx.conf @@ -89,6 +89,27 @@ http { ssl_certificate /usr/local/etc/letsencrypt/live/gitjoe.xyz/fullchain.pem; ssl_certificate_key /usr/local/etc/letsencrypt/live/gitjoe.xyz/privkey.pem; } + server{ + server_name watchoom.gitjoe.xyz; + root /usr/local/www/watchoom; + index index.html; + expires $expires; + + location / { + try_files $uri $uri/ =404; + } + location ~ /\.ht { + deny all; + } + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/local/www/nginx-dist; + } + + listen 443 ssl; + ssl_certificate /usr/local/etc/letsencrypt/live/gitjoe.xyz/fullchain.pem; + ssl_certificate_key /usr/local/etc/letsencrypt/live/gitjoe.xyz/privkey.pem; +} server { server_name fossil.jozanofastora.xyz; @@ -138,6 +159,16 @@ server{ return 404; } +server{ + if ($host = watchoom.gitjoe.xyz) { + return 301 https://$host$request_uri; + } + + server_name watchoom.gitjoe.xyz; + listen 80; + return 404; +} + #server { # if ($host = fossil.jozanofastora.xyz) { # return 301 https://$host$request_uri; |