Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit 1c3b90c

Browse files
committed
Add SCP server for uploading client files
Fixes #180
1 parent ae65b39 commit 1c3b90c

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

config.template/faf-client-upload/authorized_keys

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SSH_USERS=data:1000:1000
2+
RSYNC_MODE=true

config.template/faf-traefik/traefik.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ entryPoints:
88
address: ":80"
99
web-secure:
1010
address: ":443"
11+
client-upload:
12+
address: ":8022"
1113

1214
# Listen for changes on docker and the dynamic configuration file
1315
providers:

docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,30 @@ services:
428428
- "traefik.http.routers.faf-user-service.tls.certresolver=default"
429429
- "traefik.http.services.faf-user-service.loadbalancer.server.port=8080"
430430

431+
#
432+
# An SCP server that allows uploading client update files via rsync. Example command:
433+
#
434+
# rsync -avz -e "ssh -p 8022" /build/client/ data@client-upload.faforever.com:client
435+
#
436+
faf-client-upload:
437+
container_name: faf-client-upload
438+
image: panubo/sshd@sha256:4be2259311faba55fe9aa5bcac7ae5a3766c8dc64c71af45c0c002d48743e7d9
439+
networks:
440+
faf:
441+
aliases:
442+
- "faf-client-upload"
443+
restart: unless-stopped
444+
volumes:
445+
- ./data/content/client:/home/data/client
446+
- ./config/faf-client-upload/authorized_keys:/etc/authorized_keys/data:ro
447+
env_file: ./config/faf-client-upload/faf-client-upload.env
448+
labels:
449+
- "traefik.enable=true"
450+
- "traefik.tcp.routers.faf-client-upload.rule=HostSNI(`*`)"
451+
- "traefik.tcp.routers.faf-client-upload.entryPoints=client-upload"
452+
- "traefik.tcp.routers.faf-client-upload.service=faf-client-upload"
453+
- "traefik.tcp.services.faf-client-upload.loadbalancer.server.port=22"
454+
431455
networks:
432456
faf:
433457
driver: bridge

0 commit comments

Comments
 (0)