123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- # jibby.org
- server {
- server_name jibby.org;
- location / {
- set $temp $request;
- if ($temp ~ (.*)password=[^&]*(.*)) {
- set $temp $1password=****$2;
- }
- access_log /var/log/nginx/access.log filter;
- proxy_set_header Host jibby.org;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Scheme $scheme;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Nginx-Scheme $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_redirect off;
- proxy_pass http://localhost:8080;
- }
- # Used to try and trick matrix into routing jibby.org traffic to matrix
- # location /_matrix {
- # proxy_pass http://localhost:8008;
- # proxy_set_header X-Forwarded-For $remote_addr;
- # }
- #
- location /.well-known/matrix/ {
- root /var/www/;
- default_type application/json;
- add_header Access-Control-Allow-Origin *;
- }
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/jibby.org/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/jibby.org/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 = jibby.org) {
- return 302 https://$host$request_uri;
- } # managed by Certbot
- server_name jibby.org;
- listen 80;
- return 404; # managed by Certbot
- }
- # *.jibby.org
- server {
- server_name ~^(?<subdomain>.+)\.jibby\.org$;
- location / {
- set $temp $request;
- if ($temp ~ (.*)password=[^&]*(.*)) {
- set $temp $1password=****$2;
- }
- access_log /var/log/nginx/access.log filter;
- proxy_set_header Host $subdomain.jibby.org;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Scheme $scheme;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Nginx-Scheme $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_redirect off;
- proxy_pass http://localhost:8080;
- }
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/jibby.org-0001/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/jibby.org-0001/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 ~* (?<subdomain>.+)\.jibby\.org) {
- return 302 https://$host$request_uri;
- } # managed by Certbot
- server_name ~^(?<subdomain>.+)\.jibby\.org$;
- listen 80;
- return 404; # managed by Certbot
- }
- # jossh.us
- # server {
- # server_name jossh.us;
- #
- # location / {
- # set $temp $request;
- # if ($temp ~ (.*)password=[^&]*(.*)) {
- # set $temp $1password=****$2;
- # }
- # access_log /var/log/nginx/access.log filter;
- #
- # proxy_set_header Host jossh.us;
- # proxy_set_header X-Real-IP $remote_addr;
- # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # proxy_set_header X-Scheme $scheme;
- # proxy_set_header X-Forwarded-Proto $scheme;
- # proxy_set_header X-Nginx-Scheme $scheme;
- # proxy_set_header X-Forwarded-Port $server_port;
- # proxy_redirect off;
- # proxy_pass http://localhost:8080;
- # }
- #
- #
- # listen 443 ssl; # managed by Certbot
- # ssl_certificate /etc/letsencrypt/live/jossh.us/fullchain.pem; # managed by Certbot
- # ssl_certificate_key /etc/letsencrypt/live/jossh.us/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 = jossh.us) {
- # return 302 https://$host$request_uri;
- # } # managed by Certbot
- #
- #
- # server_name jossh.us;
- # listen 80;
- # return 404; # managed by Certbot
- #
- #
- # }
- #
- #
- # # *.jossh.us
- # server {
- # server_name ~^(?<subdomain>.+)\.jossh\.us$;
- #
- # location / {
- #
- # set $temp $request;
- # if ($temp ~ (.*)password=[^&]*(.*)) {
- # set $temp $1password=****$2;
- # }
- # access_log /var/log/nginx/access.log filter;
- #
- # proxy_set_header Host $subdomain.jossh.us;
- # proxy_set_header X-Real-IP $remote_addr;
- # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # proxy_set_header X-Scheme $scheme;
- # proxy_set_header X-Forwarded-Proto $scheme;
- # proxy_set_header X-Nginx-Scheme $scheme;
- # proxy_set_header X-Forwarded-Port $server_port;
- # proxy_redirect off;
- # proxy_pass http://localhost:8080;
- # }
- #
- # listen 443 ssl; # managed by Certbot
- # ssl_certificate /etc/letsencrypt/live/jossh.us-0001/fullchain.pem; # managed by Certbot
- # ssl_certificate_key /etc/letsencrypt/live/jossh.us-0001/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 ~* (?<subdomain>.+)\.jossh\.us) {
- # return 302 https://$host$request_uri;
- # } # managed by Certbot
- #
- #
- # server_name ~^(?<subdomain>.+)\.jibby\.org$;
- # listen 80;
- # return 404; # managed by Certbot
- #
- #
- # }
|