Skip to content

Commit

Permalink
Updated rclone systemd service file
Browse files Browse the repository at this point in the history
  • Loading branch information
SimpleHomelab committed Jun 4, 2024
1 parent fe1c415 commit 9855b67
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compose/hs/authelia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
- "traefik.http.routers.authelia-rtr.entrypoints=websecure"
- "traefik.http.routers.authelia-rtr.rule=Host(`authelia.$DOMAINNAME_HS`)"
## Middlewares
- "traefik.http.routers.authelia-rtr.middlewares=chain-no-auth@file"
- "traefik.http.routers.authelia-rtr.middlewares=chain-no-auth@file" # Should be chain-no-auth and not chain-authelia
## HTTP Services
- "traefik.http.routers.authelia-rtr.service=authelia-svc"
- "traefik.http.services.authelia-svc.loadbalancer.server.port=9091"
45 changes: 45 additions & 0 deletions scripts/systemd/rclone-ds918.service.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[Unit]
Description=Rclone NAS SMB
Wants=network-online.target
After=network-online.target

[Service]
# https://forum.rclone.org/t/some-help-with-rclone-mount-for-plex-buffering-everywhere/18201/23
# https://forum.rclone.org/t/unable-to-start-rclone-service/32149/7
Type=notify
ExecStart=/usr/bin/rclone mount ds918: /media/rclone/ds918 \
#--read-only \
--config /home/anand/docker/appdata/rclone/rclone.conf \
--log-file=/home/anand/docker/logs/hs/rclone-ds918.log \
--log-level NOTICE \
--allow-other \
--no-modtime \
--umask 002 \
--user-agent home-server \
--dir-cache-time 24h \
--buffer-size 128M \
--vfs-fast-fingerprint \
--vfs-cache-mode full \
--vfs-cache-max-age 336h \
--cache-dir=/media/ssd/hs/cache/ds918 \
--vfs-cache-max-size 896G \
--vfs-read-chunk-size-limit 10G \
--vfs-refresh \
--rc \
--rc-web-gui \
--rc-addr :5572 \
--rc-web-gui-no-open-browser \
--rc-no-auth \
#--rc-user=$RCLONE_WEBUI_USER \
#--rc-pass=$RCLONE_WEBUI_PASS \
--use-mmap
ExecStop=/bin/fusermount -uz /media/rclone/ds918
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr :5572 _async=true
Restart=on-abort
User=anand
Group=anand
KillMode=mixed
RestartSec=5

[Install]
WantedBy=default.target

0 comments on commit 9855b67

Please sign in to comment.