Compare commits
6 Commits
d70dc99f89
...
a2651e5f79
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | a2651e5f79 | |
Lukáš Kucharczyk | 7e2c66c907 | |
Lukáš Kucharczyk | e28b445cd8 | |
Lukáš Kucharczyk | f2d80dbe15 | |
Lukáš Kucharczyk | 7e7c28d68c | |
Lukáš Kucharczyk | 8ab660cebb |
|
@ -3,6 +3,7 @@
|
||||||
roles:
|
roles:
|
||||||
- docker
|
- docker
|
||||||
- nginx
|
- nginx
|
||||||
|
- portainer
|
||||||
- jellyfin
|
- jellyfin
|
||||||
- openldap
|
- openldap
|
||||||
- postgres
|
- postgres
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue