File tree Expand file tree Collapse file tree
ansible/host_vars/lovelace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,12 +121,28 @@ nginx_configs:
121121 ssl_certificate /etc/letsencrypt/live/owlcorp.uk/fullchain.pem;
122122 ssl_certificate_key /etc/letsencrypt/live/owlcorp.uk/privkey.pem;
123123
124- location /.well-known/webfinger {
125- add_header Access-Control-Allow-Origin '*';
126- return 301 https://social.owlcorp.uk$request_uri;
124+ location / {
125+ try_files $uri $uri/ =404;
126+ }
127+ }
128+
129+ pydis.wtf.conf : |
130+ server {
131+ listen 443;
132+ listen [::]:443;
133+ server_name pydis.wtf;
134+ root /var/www/pydis.wtf;
135+
136+ ssl_certificate /etc/letsencrypt/live/pydis.wtf/fullchain.pem;
137+ ssl_certificate_key /etc/letsencrypt/live/pydis.wtf/privkey.pem;
138+
139+ location ~ ^/~(.+?)(/.*)?$ {
140+ alias /home/$1/public$2;
141+ autoindex on;
127142 }
128143
129144 location / {
130145 try_files $uri $uri/ =404;
131146 }
147+
132148 }
You can’t perform that action at this time.
0 commit comments