Add service and other setup files

This commit is contained in:
2025-01-26 23:58:35 -05:00
parent 6fb6a0d635
commit 568cbf4980
7 changed files with 109 additions and 16 deletions

17
pgweb.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Simple web-based and cross platform PostgreSQL database explorer
Documentation=https://sosedoff.github.io/pgweb
[Service]
User=pgweb
Group=pgweb
ExecStart=/usr/bin/pgweb --skip-open --address="sysd?name=pgweb.socket&idle_timeout=30m" --bookmarks-dir=bookmarks --queries-dir=queries
NoNewPrivileges=yes
CapabilityBoundingSet=
RestrictNamespaces=true
SystemCallFilter=@system-service
PrivateTmp=true
ProtectSystem=strict
ProtectHome=yes