This commit is contained in:
2026-02-09 18:46:03 +00:00
parent 16ab111a89
commit a8222f4bba
+4 -4
View File
@@ -177,20 +177,20 @@ Create a system user paskia, install UV on the system, and create a systemd unit
```fish ```fish
sudo useradd --system --home-dir /srv/paskia --create-home paskia sudo useradd --system --home-dir /srv/paskia --create-home paskia
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR=/usr/local/bin sh curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR=/usr/local/bin sh
sudo systemctl edit --force --full paskia.service sudo systemctl edit --force --full paskia@.service
``` ```
Paste the following and save: Paste the following and save:
```ini ```ini
[Unit] [Unit]
Description=Paskia Authentication Server Description=Paskia for %i
[Service] [Service]
Type=simple Type=simple
User=paskia User=paskia
WorkingDirectory=/srv/paskia WorkingDirectory=/srv/paskia
ExecStart=uvx paskia --rp-id=example.com ExecStart=uvx paskia --rp-id=%i
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
@@ -199,7 +199,7 @@ WantedBy=multi-user.target
Then enable and start, view output for registration link: Then enable and start, view output for registration link:
```fish ```fish
sudo systemctl enable --now paskia && sudo journalctl -u paskia -f -n 20 -o cat sudo systemctl enable --now paskia@example.com && sudo journalctl -u paskia@example.com -f -n 30 -o cat
``` ```