mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-09-19 07:39:13 +02:00
Add Terraform & Ansible playbook / role to deploy the metabase stack for finance on a `cx23` box with the `finance.archlinux.org` domain. Closes https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/784 Co-authored-by: Christian Heusel <christian@heusel.eu>
39 lines
1.2 KiB
Django/Jinja
39 lines
1.2 KiB
Django/Jinja
server {
|
|
include snippets/listen-80.conf;
|
|
server_name {{ finance_domain }};
|
|
|
|
access_log /var/log/nginx/{{ finance_domain }}/access.log reduced;
|
|
access_log /var/log/nginx/{{ finance_domain }}/access.log.json json_reduced;
|
|
error_log /var/log/nginx/{{ finance_domain }}/error.log;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
location / {
|
|
access_log off;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
include snippets/listen-443.conf;
|
|
server_name {{ finance_domain }};
|
|
|
|
access_log /var/log/nginx/{{ finance_domain }}/access.log main;
|
|
access_log /var/log/nginx/{{ finance_domain }}/access.log.json json_main;
|
|
error_log /var/log/nginx/{{ finance_domain }}/error.log;
|
|
|
|
acme_certificate letsencrypt;
|
|
ssl_certificate $acme_certificate;
|
|
ssl_certificate_key $acme_certificate_key;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|
|
|