Skip to content

Commit 801265f

Browse files
jb3jchristgit
authored andcommitted
Add new pydis.wtf site config to serve landing page
1 parent 675667a commit 801265f

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

ansible/host_vars/lovelace/nginx.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)