Skip to content

Commit 86365fd

Browse files
committed
Update TLS support / add access logging by default
1 parent 28d7006 commit 86365fd

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
- /var/run/docker.sock:/var/run/docker.sock
1818
- ./traefik.yml:/etc/traefik/traefik.yml:delegated
1919
- ./acme.json:/acme.json:delegated
20+
- ./logs:/logs:delegated
21+
- ./dynamic.yml:/dynamic.yml:ro
2022

2123
networks:
2224
proxy:

dynamic.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tls:
2+
options:
3+
default:
4+
minVersion: VersionTLS12
5+
cipherSuites:
6+
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
7+
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
8+
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
9+
10+
mintls13:
11+
minVersion: VersionTLS13

install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ chmod 600 acme.json
2222
# Copy docker-compose
2323
curl https://raw.githubusercontent.com/ethercreative/docker-remote-proxy/main/docker-compose.yml >> docker-compose.yml
2424

25-
# Copy Treafik config
25+
# Copy Treafik configs
2626
curl https://raw.githubusercontent.com/ethercreative/docker-remote-proxy/main/traefik.yml >> traefik.yml
27+
curl https://raw.githubusercontent.com/ethercreative/docker-remote-proxy/main/dynamic.yml >> dynamic.yml
28+
29+
# Create logs folder
30+
mkdir logs
2731

2832
# Create the proxy network (if not exists)
2933
docker network ls|grep proxy > /dev/null || docker network create --driver bridge proxy

traefik.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ providers:
22
docker:
33
exposedByDefault: false
44
network: proxy
5+
file:
6+
filename: /dynamic.yml
57

68
api:
79
insecure: false # Set to true if you want to access the dashboard on :8080
@@ -31,3 +33,12 @@ certificatesResolvers:
3133
# dnsChallenge:
3234
# provider: digitalocean
3335
# delayBeforeCheck: 0
36+
37+
accessLog:
38+
filePath: "/logs/access.log"
39+
fields:
40+
defaultMode: keep
41+
names:
42+
defaultMode: keep
43+
headers:
44+
defaultMode: keep

0 commit comments

Comments
 (0)