Compare commits
5 Commits
a2651e5f79
...
d70dc99f89
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | d70dc99f89 | |
Lukáš Kucharczyk | ec6256ad16 | |
Lukáš Kucharczyk | 8934fb8855 | |
Lukáš Kucharczyk | 6f5140f0e6 | |
Lukáš Kucharczyk | b9f88564f7 |
|
@ -3,6 +3,7 @@
|
|||
roles:
|
||||
- docker
|
||||
- nginx
|
||||
- portainer
|
||||
- jellyfin
|
||||
- openldap
|
||||
- postgres
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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