mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 13:15:27 +00:00
fix markdown list items
This commit is contained in:
parent
b33f1ad1b3
commit
1cd4c860bf
1 changed files with 9 additions and 9 deletions
18
README.md
18
README.md
|
|
@ -81,15 +81,15 @@ To use `snac2nex` as the `systemd` service, install binary to the canonical syst
|
||||||
* `git clone https://codeberg.org/postscriptum/snac2nex.git && cd snac2nex`
|
* `git clone https://codeberg.org/postscriptum/snac2nex.git && cd snac2nex`
|
||||||
* `cargo build --release`
|
* `cargo build --release`
|
||||||
* `sudo install target/release/snac2nex /usr/local/bin/snac2nex`
|
* `sudo install target/release/snac2nex /usr/local/bin/snac2nex`
|
||||||
* tip: now you may want to clean the `snac2nex` sources folder to free up disk space
|
* tip: now you may want to clean the `snac2nex` sources folder to free up disk space
|
||||||
|
|
||||||
Setup shared access permissions:
|
Setup shared access permissions:
|
||||||
|
|
||||||
1. `useradd -m snac2nex` - create new user with home dir (for log files)
|
1. `useradd -m snac2nex` - create new user with home dir (for log files)
|
||||||
2. `usermod -aG snac snac2nex` - replace `snac` with the `systemd` group for your [Snac](https://codeberg.org/grunfink/snac2) server
|
2. `usermod -aG snac snac2nex` - replace `snac` with the `systemd` group for your [Snac](https://codeberg.org/grunfink/snac2) server
|
||||||
* `chmod -R g+r /path/to/snac/storage` - give the group read permissions to Snac directories
|
* `chmod -R g+r /path/to/snac/storage` - give the group read permissions to Snac directories
|
||||||
3. `usermod -aG nexy snac2nex` - replace `nexy` with the `systemd` group for your your Nex protocol server (e.g. [Nexy](https://github.com/YGGverse/nexy))
|
3. `usermod -aG nexy snac2nex` - replace `nexy` with the `systemd` group for your your Nex protocol server (e.g. [Nexy](https://github.com/YGGverse/nexy))
|
||||||
* `chmod -R g+rw /path/to/nex` - give the group read/write permissions to Nex directories
|
* `chmod -R g+rw /path/to/nex` - give the group read/write permissions to Nex directories
|
||||||
|
|
||||||
Create new `systemd` configuration file `/etc/systemd/system/snac2nex.service`:
|
Create new `systemd` configuration file `/etc/systemd/system/snac2nex.service`:
|
||||||
``` snac2nex.service
|
``` snac2nex.service
|
||||||
|
|
@ -111,12 +111,12 @@ StandardError=file:/home/snac2nex/error.log
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
* replace `ExecStart` arguments with your values, where:
|
* replace `ExecStart` arguments with your values, where:
|
||||||
* `-s` - Snac `storage` location
|
* `-s` - Snac `storage` location
|
||||||
* `-u` - Snac `user`(s) to sync
|
* `-u` - Snac `user`(s) to sync
|
||||||
* `-t` - Nex server `target` location for public files
|
* `-t` - Nex server `target` location for public files
|
||||||
* `-r` - is `rotate` every hour (`3600` seconds) to apply Snac instance updates (instead of export once)
|
* `-r` - is `rotate` every hour (`3600` seconds) to apply Snac instance updates (instead of export once)
|
||||||
* `-d` - enable `daemon` mode, which disables some debug output, to prevent extra write operations
|
* `-d` - enable `daemon` mode, which disables some debug output, to prevent extra write operations
|
||||||
* optionally, include `-a` (`attachment`) as `c` (`copy`) | `h` (`hard` link) | `s` (`soft` link)
|
* optionally, include `-a` (`attachment`) as `c` (`copy`) | `h` (`hard` link) | `s` (`soft` link)
|
||||||
* `systemctl daemon-reload` - apply new `systemd` configuration
|
* `systemctl daemon-reload` - apply new `systemd` configuration
|
||||||
* `systemctl enable snac2nex` - auto-start `snac2nex` sync on system boot
|
* `systemctl enable snac2nex` - auto-start `snac2nex` sync on system boot
|
||||||
* `systemctl start snac2nex` - start `snac2nex` sync now
|
* `systemctl start snac2nex` - start `snac2nex` sync now
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue