fix markdown list items

This commit is contained in:
postscriptum 2025-07-03 16:12:02 +03:00
parent b33f1ad1b3
commit 1cd4c860bf

View file

@ -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