summaryrefslogtreecommitdiff
path: root/docs/server
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2023-12-31 00:00:47 -0500
committerjoshua <joshua@joshuayun.com>2023-12-31 00:00:47 -0500
commit8cb4eb28a2aaa8f8bffcc280dc70b85546df1104 (patch)
tree6648e76ef0d9c018a63ba8f5c9813aacf5d5de5e /docs/server
parent3a9b26f8f52d8d99d3dd85130a221b5aab30e7ef (diff)
downloadwiki-8cb4eb28a2aaa8f8bffcc280dc70b85546df1104.tar.gz
Added syncthing to wiki
Diffstat (limited to 'docs/server')
-rw-r--r--docs/server/server.md4
-rw-r--r--docs/server/syncthing.md35
2 files changed, 39 insertions, 0 deletions
diff --git a/docs/server/server.md b/docs/server/server.md
index a5381f4..22dc551 100644
--- a/docs/server/server.md
+++ b/docs/server/server.md
@@ -45,6 +45,10 @@ Disable remote root login
PermitRootLogin no
+Disable root account
+
+ $ sudo chsh -s /sbin/nologin root
+
## DDNS
Setup [Dyanmic DNS (ddns) with Porkbun and ddns-updater](ddns.md).
diff --git a/docs/server/syncthing.md b/docs/server/syncthing.md
new file mode 100644
index 0000000..9a6402e
--- /dev/null
+++ b/docs/server/syncthing.md
@@ -0,0 +1,35 @@
+# Syncthing Setup
+
+I am currently using syncthing for my music to be synced across devices.
+
+## Installation
+
+Install the [Syncthing](https://apt.syncthing.net/) package from upstream repositories.
+
+## Reverse proxy setup [[Ref]](https://docs.syncthing.net/users/reverseproxy.html)
+
+Example syncthing reverse proxy setup.
+
+ sync.joshuayun.com {
+ handle_path /* {
+ reverse_proxy http://localhost:8384 {
+ header_up Host {upstream_hostport}
+ }
+ }
+ }
+
+Optional: Add a htpasswd to block unauthorized access to the syncthing.
+
+## Syncthing system service [[Ref]](https://docs.syncthing.net/users/autostart.html#linux)
+
+Enable the syncthing user service.
+
+ systemctl enable syncthing@myuser.service
+ systemctl start syncthing@myuser.service
+
+
+
+## Syncthing configuration
+
+Done all through the gui.
+It is recommended to setup a user login, **especially** if you are making a syncthing that is exposed to the open internet.