-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SCP server for uploading client files
Fixes #180
- Loading branch information
1 parent
ae65b39
commit 1c3b90c
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,2 @@ | ||
SSH_USERS=data:1000:1000 | ||
RSYNC_MODE=true |
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 |
---|---|---|
|
@@ -428,6 +428,30 @@ services: | |
- "traefik.http.routers.faf-user-service.tls.certresolver=default" | ||
- "traefik.http.services.faf-user-service.loadbalancer.server.port=8080" | ||
|
||
# | ||
# An SCP server that allows uploading client update files via rsync. Example command: | ||
# | ||
# rsync -avz -e "ssh -p 8022" /build/client/ [email protected]:client | ||
# | ||
faf-client-upload: | ||
container_name: faf-client-upload | ||
image: panubo/sshd@sha256:4be2259311faba55fe9aa5bcac7ae5a3766c8dc64c71af45c0c002d48743e7d9 | ||
networks: | ||
faf: | ||
aliases: | ||
- "faf-client-upload" | ||
restart: unless-stopped | ||
volumes: | ||
- ./data/content/client:/home/data/client | ||
- ./config/faf-client-upload/authorized_keys:/etc/authorized_keys/data:ro | ||
env_file: ./config/faf-client-upload/faf-client-upload.env | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.tcp.routers.faf-client-upload.rule=HostSNI(`*`)" | ||
- "traefik.tcp.routers.faf-client-upload.entryPoints=client-upload" | ||
- "traefik.tcp.routers.faf-client-upload.service=faf-client-upload" | ||
- "traefik.tcp.services.faf-client-upload.loadbalancer.server.port=22" | ||
|
||
networks: | ||
faf: | ||
driver: bridge | ||
|