Compare commits

..

5 Commits

Author SHA1 Message Date
b4094ce508 change docker version 2024-01-17 06:19:25 +01:00
0e0cd5aaba change license 2024-01-17 06:15:46 +01:00
938009c86d append selfsigned cert creation 2024-01-16 23:36:22 +01:00
rama
cd63ad4a55 Merge pull request 'changed version' (#3) from testing into main
Reviewed-on: #3
2023-12-12 13:55:49 +01:00
rama
1d85d0cc4e Merge pull request 'changed README.md' (#2) from testing into main
Reviewed-on: #2
2023-11-25 14:09:37 +01:00
6 changed files with 16 additions and 21 deletions

View File

@ -1,4 +1,4 @@
version: "1.0"
version: "3.9"
networks:
default:

View File

@ -1,4 +1,4 @@
version: "3.8"
version: "3.9"
networks:
default:
@ -23,10 +23,10 @@ services:
- "traefik.docker.network=${TRAEFIK_NETWORK}"
# HTTP -> HTTPS
#- "traefik.http.routers.http-catchall.entrypoints=web"
#- "traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
#- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
#- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
# HTTPS Routers
- "traefik.http.routers.${PROJECT_NAME}_traefik.rule=Host(`${PROJECT_URL}`)"

2
init
View File

@ -6,6 +6,8 @@ mkdir tls-data
docker network create $TRAEFIK_NETWORK
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./tls-data/selfsigned.key -out ./tls-data/selfsigned.crt
docker compose up -d
docker compose -f docker-compose-whoami.yml up -d

12
tls.yml
View File

@ -12,18 +12,16 @@ tls:
stores:
default:
defaultCertificate:
certFile: /tls/CF-altogether.at.crt
keyFile: /tls/CF-altogether.at.key
certFile: /tls/selfsigned.crt
keyFile: /tls/selfsigned.key
certificates:
- certFile: /tls/CF-altogether.at.crt
keyFile: /tls/CF-altogether.at.key
- certFile: /tls/selfsigned.crt
keyFile: /tls/selfsigned.key
- certFile: /tls/wordpress.localhost.crt
keyFile: /tls/wordpress.localhost.key
options:
default:
clientAuth:
# in PEM format. each file can contain multiple CAs.
caFiles:
- /tls/server.crt
- /tls/selfsigned.crt
clientAuthType: VerifyClientCertIfGiven

View File

@ -28,8 +28,6 @@ entryPoints:
http:
middlewares:
- secureHeaders@file
minecraft:
address: ':25565/tcp'
ssh:
address: ":22"
@ -37,9 +35,6 @@ providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
# endpoint: "tcp://dockerproxy:2375"
# swarmMode: false
# network: "socket_proxy"
file:
watch: true
directory: "/etc/traefik/dynamic_conf"
@ -47,6 +42,6 @@ providers:
certificatesresolvers:
le:
acme:
email: "raphy.martin@protonmail.ch"
email: "rama@altogether.at"
storage: "/certificates/acme.json"
tlschallenge: true