aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-02 13:39:03 +0100
committerGravatar Joe Banks <[email protected]>2024-06-02 13:45:14 +0100
commit2be6b9c30c7a8332019c524494fe289be5645c6e (patch)
tree7ce6e3d5f5286c9115453f713786e121138ff119
parentAdd NGINX deployment to lovelace (diff)
Move files config to new NGINX turing host variables
-rw-r--r--ansible/host_vars/turing/nginx.yml13
-rw-r--r--ansible/roles/nginx/files/files.pydis.wtf10
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;
- }
-}