aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-19 21:32:40 +0100
committerGravatar Johannes Christ <[email protected]>2024-09-21 13:25:38 +0200
commit801265fe4562de21da47c289d1a0af4e12c5fb62 (patch)
tree27f5f5fa3f5eda8811c5d8eb6b56f0aef357578e
parentAdd new role for bootstrapping the CI user with limited SSH keys (diff)
Add new pydis.wtf site config to serve landing page
-rw-r--r--ansible/host_vars/lovelace/nginx.yml22
1 files changed, 19 insertions, 3 deletions
diff --git a/ansible/host_vars/lovelace/nginx.yml b/ansible/host_vars/lovelace/nginx.yml
index 5ae916f..1f6b7df 100644
--- a/ansible/host_vars/lovelace/nginx.yml
+++ b/ansible/host_vars/lovelace/nginx.yml
@@ -121,12 +121,28 @@ nginx_configs:
ssl_certificate /etc/letsencrypt/live/owlcorp.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/owlcorp.uk/privkey.pem;
- location /.well-known/webfinger {
- add_header Access-Control-Allow-Origin '*';
- return 301 https://social.owlcorp.uk$request_uri;
+ location / {
+ try_files $uri $uri/ =404;
+ }
+ }
+
+ pydis.wtf.conf: |
+ server {
+ listen 443;
+ listen [::]:443;
+ server_name pydis.wtf;
+ root /var/www/pydis.wtf;
+
+ ssl_certificate /etc/letsencrypt/live/pydis.wtf/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/pydis.wtf/privkey.pem;
+
+ location ~ ^/~(.+?)(/.*)?$ {
+ alias /home/$1/public$2;
+ autoindex on;
}
location / {
try_files $uri $uri/ =404;
}
+
}