Skip to content

Instantly share code, notes, and snippets.

@willywongi
Last active March 25, 2021 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willywongi/67c3fc8a34d9bd5d8ff6e5a8a4f5605c to your computer and use it in GitHub Desktop.
Save willywongi/67c3fc8a34d9bd5d8ff6e5a8a4f5605c to your computer and use it in GitHub Desktop.
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