Do not take certs into account
This commit is contained in:
parent
fada0f832d
commit
0aba6f6b6b
5 changed files with 2 additions and 128 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
js/node_modules
|
||||
data/node_modules
|
||||
certs
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
version: '3.4'
|
||||
services:
|
||||
proxy:
|
||||
image: traefik:1.5.1
|
||||
configs:
|
||||
- source: traefik
|
||||
target: /etc/traefik/traefik.toml
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
ports:
|
||||
- 80:80
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
www:
|
||||
image: lucj/sophia.events
|
||||
deploy:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.rule=Host:sophia.events"
|
||||
- "traefik.port=80"
|
||||
- "traefik.frontend.entryPoints=http"
|
||||
- "traefik.frontend.headers.browserXSSFilter=true"
|
||||
- "traefik.frontend.headers.frameDeny=true"
|
||||
- "traefik.frontend.headers.contentTypeNosniff=true"
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
configs:
|
||||
traefik:
|
||||
file: ./proxy/http.toml
|
|
@ -1,34 +0,0 @@
|
|||
version: '3.4'
|
||||
services:
|
||||
proxy:
|
||||
image: traefik:1.5.1
|
||||
configs:
|
||||
- source: traefik
|
||||
target: /etc/traefik/traefik.toml
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
www:
|
||||
image: lucj/sophia.events
|
||||
deploy:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.frontend.rule=Host:sophia.events"
|
||||
- "traefik.frontend.entryPoints=http,https"
|
||||
- "traefik.frontend.headers.browserXSSFilter=true"
|
||||
- "traefik.frontend.headers.frameDeny=false"
|
||||
- "traefik.frontend.headers.contentTypeNosniff=true"
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
configs:
|
||||
traefik:
|
||||
file: ./proxy/https.toml
|
|
@ -1,22 +0,0 @@
|
|||
# Entrypoints
|
||||
defaultEntryPoints = ["http"]
|
||||
|
||||
# Global configuration
|
||||
debug = true
|
||||
logLevel = "DEBUG"
|
||||
|
||||
# Web configuration backend
|
||||
[api]
|
||||
address = ":8080"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
|
||||
# Docker configuration backend
|
||||
[docker]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
domain = "sophia.events"
|
||||
watch = true
|
||||
swarmmode = true
|
||||
exposedbydefault = false
|
|
@ -1,38 +0,0 @@
|
|||
# Entrypoints
|
||||
defaultEntryPoints = ["http", "https"]
|
||||
|
||||
# Global configuration
|
||||
debug = true
|
||||
logLevel = "DEBUG"
|
||||
|
||||
# Web configuration backend
|
||||
[api]
|
||||
address = ":8080"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
|
||||
# Docker configuration backend
|
||||
[docker]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
domain = "sophia.events"
|
||||
watch = true
|
||||
swarmmode = true
|
||||
exposedbydefault = false
|
||||
|
||||
# Let's Encrypt configuration
|
||||
[acme]
|
||||
email = "admin@sophia.events"
|
||||
storageFile = "acme.json"
|
||||
entryPoint = "https"
|
||||
[acme.httpChallenge]
|
||||
entryPoint = "http"
|
||||
[[acme.domains]]
|
||||
main = "sophia.events"
|
||||
san = ["www.sophia.events"]
|
Loading…
Reference in a new issue