fix vm vagrant
This commit is contained in:
11
dockers/traefik/conf/allow_ip.yml.dist
Normal file
11
dockers/traefik/conf/allow_ip.yml.dist
Normal file
@ -0,0 +1,11 @@
|
||||
http:
|
||||
middlewares:
|
||||
test-ipallowlist:
|
||||
ipallowlist:
|
||||
sourceRange:
|
||||
# tlm est autorisé
|
||||
- "0.0.0.0/0"
|
||||
test-adminipallowlist:
|
||||
ipallowlist:
|
||||
sourceRange:
|
||||
- "127.0.0.1"
|
@ -1,18 +0,0 @@
|
||||
http:
|
||||
middlewares:
|
||||
ipwhitelist:
|
||||
ipWhiteList:
|
||||
sourceRange:
|
||||
- "192.168.0.0/16"
|
||||
- "172.16.0.0/12"
|
||||
- "127.0.0.0/8"
|
||||
- "10.0.0.0/8"
|
||||
- "0.0.0.0/0"
|
||||
adminipwhitelist:
|
||||
ipWhiteList:
|
||||
sourceRange:
|
||||
- "192.168.0.0/16"
|
||||
- "172.16.0.0/12"
|
||||
- "127.0.0.0/8"
|
||||
- "10.0.0.0/8"
|
||||
- "0.0.0.0/0"
|
6
dockers/traefik/conf/cert.yml.dist
Normal file
6
dockers/traefik/conf/cert.yml.dist
Normal file
@ -0,0 +1,6 @@
|
||||
tls:
|
||||
stores:
|
||||
default:
|
||||
defaultCertificate:
|
||||
certFile: /etc/traefik/fullchain.pem
|
||||
keyFile: /etc/traefik/privkey.pem
|
16
dockers/traefik/first.sh
Normal file
16
dockers/traefik/first.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
SERV_DIR=$(cd $(dirname $0); pwd)
|
||||
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
|
||||
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
||||
setKazVars
|
||||
|
||||
cd $(dirname $0)
|
||||
. "${DOCKERS_ENV}"
|
||||
|
||||
|
||||
printKazMsg "\n *** Premier lancement de Traefik : Mise en place"
|
||||
|
||||
[[ -f "conf/allow_ip.yml" ]] || cp "conf/allow_ip.yml.dist" "conf/allow_ip.yml"
|
||||
cp /etc/letsencrypt/live/${domain}/{fullchain.pem,privkey.pem} conf/
|
||||
[[ -f "conf/cert.yml" ]] || cp "conf/cert.yml.dist" "conf/cert.yml"
|
Reference in New Issue
Block a user