Compare commits

...

6 Commits

4 changed files with 37 additions and 0 deletions

View File

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

View File

@ -29,6 +29,9 @@ access_control:
rules: rules:
- domain: "*.{{ base_domain }}" - domain: "*.{{ base_domain }}"
policy: bypass policy: bypass
- domain: portainer.{{ base_domain }}
policy: one_factor
session:
name: authelia_session name: authelia_session
secret: somerandomsecret secret: somerandomsecret
expiration: 1h 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;
}
}