Skip to content

Commit 9855b67

Browse files
committed
Updated rclone systemd service file
1 parent fe1c415 commit 9855b67

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

compose/hs/authelia.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434
- "traefik.http.routers.authelia-rtr.entrypoints=websecure"
3535
- "traefik.http.routers.authelia-rtr.rule=Host(`authelia.$DOMAINNAME_HS`)"
3636
## Middlewares
37-
- "traefik.http.routers.authelia-rtr.middlewares=chain-no-auth@file"
37+
- "traefik.http.routers.authelia-rtr.middlewares=chain-no-auth@file" # Should be chain-no-auth and not chain-authelia
3838
## HTTP Services
3939
- "traefik.http.routers.authelia-rtr.service=authelia-svc"
4040
- "traefik.http.services.authelia-svc.loadbalancer.server.port=9091"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[Unit]
2+
Description=Rclone NAS SMB
3+
Wants=network-online.target
4+
After=network-online.target
5+
6+
[Service]
7+
# https://forum.rclone.org/t/some-help-with-rclone-mount-for-plex-buffering-everywhere/18201/23
8+
# https://forum.rclone.org/t/unable-to-start-rclone-service/32149/7
9+
Type=notify
10+
ExecStart=/usr/bin/rclone mount ds918: /media/rclone/ds918 \
11+
#--read-only \
12+
--config /home/anand/docker/appdata/rclone/rclone.conf \
13+
--log-file=/home/anand/docker/logs/hs/rclone-ds918.log \
14+
--log-level NOTICE \
15+
--allow-other \
16+
--no-modtime \
17+
--umask 002 \
18+
--user-agent home-server \
19+
--dir-cache-time 24h \
20+
--buffer-size 128M \
21+
--vfs-fast-fingerprint \
22+
--vfs-cache-mode full \
23+
--vfs-cache-max-age 336h \
24+
--cache-dir=/media/ssd/hs/cache/ds918 \
25+
--vfs-cache-max-size 896G \
26+
--vfs-read-chunk-size-limit 10G \
27+
--vfs-refresh \
28+
--rc \
29+
--rc-web-gui \
30+
--rc-addr :5572 \
31+
--rc-web-gui-no-open-browser \
32+
--rc-no-auth \
33+
#--rc-user=$RCLONE_WEBUI_USER \
34+
#--rc-pass=$RCLONE_WEBUI_PASS \
35+
--use-mmap
36+
ExecStop=/bin/fusermount -uz /media/rclone/ds918
37+
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr :5572 _async=true
38+
Restart=on-abort
39+
User=anand
40+
Group=anand
41+
KillMode=mixed
42+
RestartSec=5
43+
44+
[Install]
45+
WantedBy=default.target

0 commit comments

Comments
 (0)