From aa96ceb9f5481a4da9f4a16dff92d05acc48687d Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Sat, 12 Aug 2023 19:01:01 +0100 Subject: Serve static files from Turing (#116) * Redirect http requests to https * Remove default NGINX site * Remove trailing whitespace from old meeting note * Mount static files * Correct capitalisation of notify directives * Add missing children key to inventory --- roles/nginx/files/files.pydis.wtf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/nginx/files/files.pydis.wtf (limited to 'roles/nginx/files/files.pydis.wtf') diff --git a/roles/nginx/files/files.pydis.wtf b/roles/nginx/files/files.pydis.wtf new file mode 100644 index 0000000..db8416e --- /dev/null +++ b/roles/nginx/files/files.pydis.wtf @@ -0,0 +1,10 @@ +# Managed by Ansible +server { + listen 443; + server_name files.pydis.wtf; + root /var/www/turing; + + location / { + try_files $uri $uri/; + } +} -- cgit v1.2.3