diff --git a/.gitignore b/.gitignore index 4e349b2..d983a1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -js/node_modules +data/node_modules +certs diff --git a/docker-stack-http.yml b/docker-stack-http.yml deleted file mode 100644 index bf42e4d..0000000 --- a/docker-stack-http.yml +++ /dev/null @@ -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 diff --git a/docker-stack-https.yml b/docker-stack-https.yml deleted file mode 100644 index 7608293..0000000 --- a/docker-stack-https.yml +++ /dev/null @@ -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 diff --git a/proxy/http.toml b/proxy/http.toml deleted file mode 100644 index 793e905..0000000 --- a/proxy/http.toml +++ /dev/null @@ -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 diff --git a/proxy/https.toml b/proxy/https.toml deleted file mode 100644 index 50bf49e..0000000 --- a/proxy/https.toml +++ /dev/null @@ -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"]