lab-ansible/roles/apps/templates/nginx/conf.d/joplin.conf.j2
2024-03-02 22:36:05 +01:00

22 lines
543 B
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
server {
server_name {{ apps_vars.joplin.domain }};
listen 8080;
set $upstream http://joplin:{{ apps_vars.joplin.port }};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
proxy_http_version 1.1;
proxy_buffering off;
location / {
proxy_pass $upstream;
}
}