homelab/roles/portainer/templates/portainer.conf.j2

20 lines
506 B
Plaintext
Raw Normal View History

2021-06-20 20:29:25 +00:00
server {
server_name portainer.{{ base_domain }};
2021-06-21 09:28:36 +00:00
listen 80;
return 301 https://$server_name$request_uri;
2021-06-20 20:29:25 +00:00
}
server {
server_name portainer.{{ base_domain }};
listen 443 ssl http2;
include /etc/nginx/snippets/authelia-endpoint.conf;
location / {
include /etc/nginx/snippets/proxy.conf;
include /etc/nginx/snippets/authelia-auth.conf;
set $upstream http://portainer:9000; # This example assumes a Docker deployment
proxy_pass $upstream;
}
}