Compare commits

...

5 Commits

4 changed files with 36 additions and 0 deletions

View File

@ -3,6 +3,7 @@
roles:
- docker
- nginx
- portainer
- jellyfin
- openldap
- postgres

View File

@ -29,6 +29,8 @@ access_control:
rules:
- domain: "*.{{ base_domain }}"
policy: bypass
- domain: portainer.{{ base_domain }}
policy: one_factor
name: authelia_session
secret: somerandomsecret
expiration: 1h

View File

@ -0,0 +1,13 @@
- name: run container
docker_container:
name: 'portainer'
image: portainer/portainer-ce
networks:
- name: nginx-internal
- name: bridge
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "8000:8000"
- "9000:9000"
state: started

View File

@ -0,0 +1,20 @@
server {
listen 80;
server_name portainer.{{ base_domain }};
return 301 https://$host$request_uri;
}
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;
}
}