aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/nginx/etc-nginx/sites-available/labunix.conf
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
committerLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
commit83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch)
tree19110702c7d740f6bd8ee4f5d2ebcb97442be237 /straper/db/public/nginx/etc-nginx/sites-available/labunix.conf
parent51d43498b07dc97d795947964534f0903cd05db5 (diff)
downloadbin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz
bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'straper/db/public/nginx/etc-nginx/sites-available/labunix.conf')
-rw-r--r--straper/db/public/nginx/etc-nginx/sites-available/labunix.conf47
1 files changed, 0 insertions, 47 deletions
diff --git a/straper/db/public/nginx/etc-nginx/sites-available/labunix.conf b/straper/db/public/nginx/etc-nginx/sites-available/labunix.conf
deleted file mode 100644
index 01043ff..0000000
--- a/straper/db/public/nginx/etc-nginx/sites-available/labunix.conf
+++ /dev/null
@@ -1,47 +0,0 @@
-# HTTP on :9080 (optional: redirect to HTTPS :9443)
-server {
- listen 9080;
- server_name labunix.xyz www.labunix.xyz 10.50.0.1;
-
- # If you want redirect to HTTPS on :9443:
- return 301 https://$host:443$request_uri;
-
- # If you prefer serving plain HTTP instead, comment the return above
- # and uncomment this:
- # root /srv/www/labunix/public;
- # index index.html;
- # location / { try_files $uri $uri/ =404; }
-}
-
-# HTTPS on :9443
-server {
- listen 443 ssl;
- http2 on;
- server_name labunix.xyz www.labunix.xyz 10.50.0.1;
-
- root /srv/www/labunix/public;
- index index.html;
-
- ssl_certificate /etc/letsencrypt/live/labunix.xyz/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/labunix.xyz/privkey.pem;
-
- add_header Onion-Location "http://l6xtdi33ubszm2gswstchrb6o4d6aw3ewj2irexlsbzk6pvesky7p2ad.onion$request_uri" always;
-
- location / {
- try_files $uri $uri/ =404;
- }
- location /stats/ {
- alias /srv/stats/;
- index goaccess.html;
- allow 127.0.0.1;
- allow 10.50.0.0/24;
- allow 192.168.33.0/24;
- deny all;
- }
-
- location ~* \.(css|js|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
- expires 30d;
- add_header Cache-Control "public, max-age=2592000, immutable";
- try_files $uri =404;
- }
-}