From 8cb4eb28a2aaa8f8bffcc280dc70b85546df1104 Mon Sep 17 00:00:00 2001 From: joshua Date: Sun, 31 Dec 2023 00:00:47 -0500 Subject: Added syncthing to wiki --- site/server/cgit/index.html | 21 ++ site/server/ddns/index.html | 23 +- site/server/server/index.html | 24 ++ site/server/syncthing/index.html | 674 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 741 insertions(+), 1 deletion(-) create mode 100644 site/server/syncthing/index.html (limited to 'site/server') diff --git a/site/server/cgit/index.html b/site/server/cgit/index.html index 5337dcc..c9b840e 100644 --- a/site/server/cgit/index.html +++ b/site/server/cgit/index.html @@ -450,6 +450,27 @@ + + + + + + +
  • + + + + + Syncthing + + + + +
  • + + + + diff --git a/site/server/ddns/index.html b/site/server/ddns/index.html index deec4aa..19abf31 100644 --- a/site/server/ddns/index.html +++ b/site/server/ddns/index.html @@ -14,7 +14,7 @@ - + @@ -399,6 +399,27 @@ + + + + + + +
  • + + + + + Syncthing + + + + +
  • + + + + diff --git a/site/server/server/index.html b/site/server/server/index.html index 993330a..3c2f02c 100644 --- a/site/server/server/index.html +++ b/site/server/server/index.html @@ -426,6 +426,27 @@ + + + + + + +
  • + + + + + Syncthing + + + + +
  • + + + + @@ -691,6 +712,9 @@ UsePAM no

    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.

    Caddy

    diff --git a/site/server/syncthing/index.html b/site/server/syncthing/index.html new file mode 100644 index 0000000..edbd05c --- /dev/null +++ b/site/server/syncthing/index.html @@ -0,0 +1,674 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Syncthing - Joshua's Wiki + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + +

    Syncthing Setup

    +

    I am currently using syncthing for my music to be synced across devices.

    +

    Installation

    +

    Install the Syncthing package from upstream repositories.

    +

    Reverse proxy setup [Ref]

    +

    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]

    +

    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.

    + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3