Compare commits
2 Commits
7522c333da
...
cab6ab2d8e
Author | SHA1 | Date | |
---|---|---|---|
cab6ab2d8e | |||
95f54b7f0a |
@ -20,7 +20,6 @@
|
|||||||
- docker
|
- docker
|
||||||
- traefik
|
- traefik
|
||||||
- nextcloud
|
- nextcloud
|
||||||
- gitea
|
|
||||||
- jenkins
|
- jenkins
|
||||||
- prometheus
|
- prometheus
|
||||||
- nginx
|
- nginx
|
||||||
|
@ -31,6 +31,7 @@ server {
|
|||||||
{% if item.restrict is defined and item.restrict %}
|
{% if item.restrict is defined and item.restrict %}
|
||||||
auth_basic "{{ item.restrict_name | default('Restricted Access') }}";
|
auth_basic "{{ item.restrict_name | default('Restricted Access') }}";
|
||||||
auth_basic_user_file {{ item.restrict_file | default('/etc/nginx/.htpasswd') }};
|
auth_basic_user_file {{ item.restrict_file | default('/etc/nginx/.htpasswd') }};
|
||||||
|
proxy_set_header Authorization "";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
@ -3,8 +3,10 @@ traefik_dashboard: false
|
|||||||
traefik_root: "/opt/{{ traefik_name }}"
|
traefik_root: "/opt/{{ traefik_name }}"
|
||||||
traefik_localonly: "10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8"
|
traefik_localonly: "10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8"
|
||||||
traefik_production: false
|
traefik_production: false
|
||||||
|
traefik_hsts_enable: false
|
||||||
traefik_hsts_preload: false
|
traefik_hsts_preload: false
|
||||||
traefik_hsts_seconds: 0
|
traefik_hsts_seconds: 0
|
||||||
|
traefik_http_redirect: false
|
||||||
traefik_ports:
|
traefik_ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
@ -10,10 +10,12 @@ http:
|
|||||||
{% elif item.middlewares is defined %}
|
{% elif item.middlewares is defined %}
|
||||||
middlewares: "{{ item.middlewares }}"
|
middlewares: "{{ item.middlewares }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if traefik_acme_email is defined %}
|
||||||
tls:
|
tls:
|
||||||
certResolver: letsencrypt
|
certResolver: letsencrypt
|
||||||
domains:
|
domains:
|
||||||
- main: "{{ item.domain }}"
|
- main: "{{ item.domain }}"
|
||||||
|
{% endif %}
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "websecure"
|
- "websecure"
|
||||||
services:
|
services:
|
||||||
|
@ -11,6 +11,8 @@ http:
|
|||||||
sslRedirect: true
|
sslRedirect: true
|
||||||
browserXssFilter: true
|
browserXssFilter: true
|
||||||
contentTypeNosniff: true
|
contentTypeNosniff: true
|
||||||
|
{% if traefik_hsts_enable is defined and traefik_hsts_enable %}
|
||||||
stsPreload: {{ traefik_hsts_preload }}
|
stsPreload: {{ traefik_hsts_preload }}
|
||||||
stsSeconds: {{ traefik_hsts_seconds }}
|
stsSeconds: {{ traefik_hsts_seconds }}
|
||||||
|
{% endif %}
|
||||||
customFrameOptionsValue: SAMEORIGIN
|
customFrameOptionsValue: SAMEORIGIN
|
||||||
|
@ -10,12 +10,14 @@ providers:
|
|||||||
entrypoints:
|
entrypoints:
|
||||||
web:
|
web:
|
||||||
address: ':80'
|
address: ':80'
|
||||||
|
{% if traefik_http_redirect is defined and traefik_http_redirect %}
|
||||||
http:
|
http:
|
||||||
redirections:
|
redirections:
|
||||||
entrypoint:
|
entrypoint:
|
||||||
to: websecure
|
to: websecure
|
||||||
scheme: https
|
scheme: https
|
||||||
permanent: true
|
permanent: true
|
||||||
|
{% endif %}
|
||||||
websecure:
|
websecure:
|
||||||
address: ':443'
|
address: ':443'
|
||||||
http:
|
http:
|
||||||
|
Loading…
Reference in New Issue
Block a user