Skip to content

Instantly share code, notes, and snippets.

@willywongi
Last active Mar 25, 2021
Embed
What would you like to do?
Photostructure & syncthing setup

Notes on getting syncthing working to backup my smartphone pictures.

Traefik setup

version: "3.7"
services:
traefik:
[...]
command:
[...]
# 1. Add file provider
--providers.file=true
--providers.file.filename=/dynamic_conf.yaml
volumes:
[...]
# 2. mount dynamic conf file
- ./dynamic_conf.yaml:/dynamic_conf.yaml
extra_hosts:
- "host.docker.internal:host-gateway"
http:
routers:
syncthing-fe:
rule: "Host(`your.domain`)"
entrypoints:
- https
tls:
certResolver: "letsencrypt"
middlewares:
- withauth
service: syncthing-fe
middlewares:
withauth:
basicAuth:
users:
# use `htpasswd -n willywongi` to get your hashed password
services:
syncthing-fe:
loadBalancer:
servers:
- url: http://host.docker.internal:8384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment