diff options
author | 2024-06-02 13:39:03 +0100 | |
---|---|---|
committer | 2024-06-02 13:45:14 +0100 | |
commit | 2be6b9c30c7a8332019c524494fe289be5645c6e (patch) | |
tree | 7ce6e3d5f5286c9115453f713786e121138ff119 | |
parent | Add NGINX deployment to lovelace (diff) |
Move files config to new NGINX turing host variables
-rw-r--r-- | ansible/host_vars/turing/nginx.yml | 13 | ||||
-rw-r--r-- | ansible/roles/nginx/files/files.pydis.wtf | 10 |
2 files changed, 13 insertions, 10 deletions
diff --git a/ansible/host_vars/turing/nginx.yml b/ansible/host_vars/turing/nginx.yml new file mode 100644 index 0000000..8d11373 --- /dev/null +++ b/ansible/host_vars/turing/nginx.yml @@ -0,0 +1,13 @@ +nginx_default_cert_name: pydis.wtf + +nginx_configs: + files.pydis.wtf.conf: | + server { + listen 443; + server_name files.pydis.wtf cloud.native.is.fun.and.easy.pydis.wtf; + root /var/www/turing; + + location / { + try_files $uri $uri/ =404; + } + } diff --git a/ansible/roles/nginx/files/files.pydis.wtf b/ansible/roles/nginx/files/files.pydis.wtf deleted file mode 100644 index 9d4cf68..0000000 --- a/ansible/roles/nginx/files/files.pydis.wtf +++ /dev/null @@ -1,10 +0,0 @@ -# Managed by Ansible -server { - listen 443; - server_name files.pydis.wtf cloud.native.is.fun.and.easy.pydis.wtf; - root /var/www/turing; - - location / { - try_files $uri $uri/ =404; - } -} |