This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
forked from intelowlproject/IntelOwl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start with --traefik/--traefik_local option. Closes intelowlproject#2305
(intelowlproject#2351) * add traefik config and options for dev and prod working config with traefik finish traefik config prod/dev add documentation * Update traefik_local.override.yml - remove comment * rework prod/local traefik and add deletion of get-docker.sh * split traefik compose into base, prod and local * remove print of compose files * parent c45c84a author David Mihajlovic <david.mihajlovic@protonmail.com> 1716908101 +0200 committer David Mihajlovic <david.mihajlovic@protonmail.com> 1717135119 +0200 add traefik config and options for dev and prod working config with traefik finish traefik config prod/dev add documentation Vulners#1257 (intelowlproject#2340) * vulners * vulners wrapper * docs * lesser variables * migrations * code quality * migration * code --------- Co-authored-by: g4ze <bhaiyajionline@gmail.com> bump 6.0.3 updated docs Bump django-ses from 4.0.0 to 4.1.0 in /requirements (intelowlproject#2342) Bumps [django-ses](https://github.com/django-ses/django-ses) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/django-ses/django-ses/releases) - [Changelog](https://github.com/django-ses/django-ses/blob/main/CHANGES.md) - [Commits](django-ses/django-ses@v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: django-ses dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> rework prod/local traefik and add deletion of get-docker.sh split traefik compose into base, prod and local get-docker.sh deletion without sudo change traefik compose naming * remove unnecessary files * remove print of compose files * change doc --------- Co-authored-by: Ubuntu <ubuntu@intelowldev.novalocal>
- Loading branch information
Showing
9 changed files
with
144 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
services: | ||
nginx: | ||
ports: | ||
- "80:80" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
traefik: | ||
image: "traefik:3.0" | ||
labels: | ||
- "traefik.enable=true" | ||
|
||
nginx: | ||
depends_on: | ||
- traefik | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.services.nginx.loadbalancer.server.port=80" | ||
expose: | ||
- "80" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
traefik: | ||
container_name: "intelowl_traefik_local" | ||
command: | ||
# Pleases refer to the official documentation: https://doc.traefik.io/traefik/ | ||
# LOGS | ||
- "--log.level=DEBUG" | ||
# DASHBOARD | ||
- "--api.insecure=true" | ||
- "--api.dashboard=true" | ||
# ENTRYPOINTS - redirect every request to use HTTPS | ||
- "--entrypoints.web.address=:80" | ||
# PROVIDERS | ||
- "--providers.docker=true" | ||
- "--providers.docker.watch=true" | ||
- "--providers.docker.exposedbydefault=false" | ||
ports: | ||
- "80:80" | ||
- "8080:8080" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
|
||
nginx: | ||
depends_on: | ||
- traefik | ||
labels: | ||
- "traefik.http.routers.nginx.rule=Host(`localhost`)" | ||
- "traefik.http.routers.nginx.entrypoints=web" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
services: | ||
traefik: | ||
container_name: "intelowl_traefik_prod" | ||
command: | ||
# Pleases refer to the official documentation: https://doc.traefik.io/traefik/ | ||
# LOGS - may be omitted if you don't need logs | ||
- "--accesslog=true" | ||
- "--accesslog.filepath=/var/log/traefik/access.log" | ||
- "--log.filePath=/var/log/traefik/traefik.log" | ||
- "--log.level=DEBUG" | ||
# DASHBOARD | ||
- "--api.dashboard=true" | ||
# PROVIDERS | ||
- "--providers.docker=true" | ||
- "--providers.docker.watch=true" | ||
- "--providers.docker.exposedbydefault=false" | ||
# ENTRYPOINTS - redirect every request to use HTTPS | ||
- "--entrypoints.web.address=:80" | ||
- "--entryPoints.web.http.redirections.entryPoint.to=websecure" | ||
- "--entryPoints.web.http.redirections.entryPoint.scheme=https" | ||
- "--entryPoints.web.http.redirections.entrypoint.permanent=true" | ||
- "--entrypoints.websecure.address=:443" | ||
# CERTIFICATE RESOLVERS | ||
- "--certificatesresolvers.le.acme.httpchallenge=true" | ||
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web" | ||
# DEV - use this for testing purposes or else you might get blocked - # CHANGE THIS | ||
- "--certificatesresolvers.le.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" | ||
# PROD - use this if everything works fine - # CHANGE THIS | ||
#- "--certificatesresolvers.le.acme.caserver=https://acme-v02.api.letsencrypt.org/directory" | ||
- "--certificatesresolvers.le.acme.email=postmaster@example.com" # CHANGE THIS | ||
- "--certificatesresolvers.le.acme.storage=/etc/letsencrypt/acme.json" | ||
labels: | ||
# DASHBOARD - setup for secure dashboard access | ||
- "traefik.http.routers.dashboard.rule=Host(`traefik.intelowl.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))" # CHANGE THIS (Only "Host"!) | ||
- "traefik.http.routers.dashboard.service=api@internal" | ||
- "traefik.http.routers.dashboard.entrypoints=websecure" | ||
- "traefik.http.routers.dashboard.tls=true" | ||
- "traefik.http.routers.dashboard.tls.certresolver=le" | ||
# auth/ipallowlist middlewares allow to limit/secure access - may be omitted | ||
# Here you may define which IPs/CIDR ranges are allowed to access this resource - may be omitted | ||
# - "traefik.http.routers.dashboard.middlewares=dashboard-ipallowlist" | ||
# - "traefik.http.middlewares.dashboard-ipallowlist.ipallowlist.sourcerange=0.0.0.0" # CHANGE THIS | ||
# You can create a new user and password for basic auth with this command: | ||
# echo $(htpasswd -nbB user password) | sed -e s/\\$/\\$\\$/g | ||
# - "traefik.http.routers.dashboard.middlewares=auth" | ||
# - "traefik.http.middlewares.auth.basicauth.users=user:$$2y$$05$$v.ncVNXEJriELglCBEZJmu5I1VrhyhuaVCXATRQTUVuvOF1qgYwpa" # CHANGE THIS (default is user:password) | ||
- "traefik.http.services.dashboard.loadbalancer.server.port=8080" | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
- "/etc/letsencrypt:/etc/letsencrypt" | ||
- "/var/log/traefik:/var/log/traefik" | ||
|
||
nginx: | ||
depends_on: | ||
- traefik | ||
labels: | ||
- "traefik.http.routers.nginx.rule=Host(`intelowl.example.com`)" # CHANGE THIS | ||
- "traefik.http.routers.nginx.entrypoints=websecure" | ||
- "traefik.http.routers.nginx.tls=true" | ||
- "traefik.http.routers.nginx.tls.certresolver=le" | ||
# Here you may define which IPs/CIDR ranges are allowed to access this resource | ||
# - "traefik.http.routers.nginx.middlewares=nginx-ipallowlist" | ||
# - "traefik.http.middlewares.nginx-ipallowlist.ipallowlist.sourcerange=0.0.0.0" # CHANGE THIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters