Skip to content

Commit

Permalink
Add SCP server for uploading client files
Browse files Browse the repository at this point in the history
Fixes #180
  • Loading branch information
micheljung committed Sep 18, 2021
1 parent ae65b39 commit b3b45d6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.template/faf-client-upload/faf-client-upload.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AUTHORIZED_KEYS=
DATADIR=/client
USERID=1000
GROUPID=1000
2 changes: 2 additions & 0 deletions config.template/faf-traefik/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ entryPoints:
address: ":80"
web-secure:
address: ":443"
client-upload:
address: ":2222"

# Listen for changes on docker and the dynamic configuration file
providers:
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,27 @@ 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.
#
faf-client-upload:
container_name: faf-client-upload
image: eeacms/scp-server
networks:
faf:
aliases:
- "faf-client-upload"
restart: unless-stopped
volumes:
- ./data/content/client:/client
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
Expand Down

0 comments on commit b3b45d6

Please sign in to comment.