@@ -2,3 +2,4 @@ db-uri = "postgresql://[USERNAME]:[PASSWORD]@[HOST_CONNECTION_STRING]"
|
||||
db-schemas = "www"
|
||||
db-anon-role = "anonymous"
|
||||
#jwt-secret = "myownlittlecleansecret"
|
||||
server-port = 3000
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[Unit]
|
||||
Description=PostgREST
|
||||
Description=PostgREST BM
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=postgrest
|
||||
Group=postgrest
|
||||
ExecStart=/usr/local/bin/postgrest /etc/postgrest/config
|
||||
ExecStart=/usr/local/bin/postgrest /etc/postgrest/config_bm
|
||||
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||
|
||||
[Install]
|
||||
12
cfg/pgr/postgrest_fwd.service
Normal file
12
cfg/pgr/postgrest_fwd.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=PostgREST FWD
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=postgrest
|
||||
Group=postgrest
|
||||
ExecStart=/usr/local/bin/postgrest /etc/postgrest/config_fwd
|
||||
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -10,11 +10,22 @@ then
|
||||
useradd -M -U -d /nonexistent -s /usr/sbin/nologin postgrest
|
||||
|
||||
cd /tmp
|
||||
wget -O postgrest.service https://gi.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest.service
|
||||
cp postgrest.service /etc/systemd/system/
|
||||
|
||||
systemctl enable postgrest
|
||||
systemctl start postgrest
|
||||
systemctl status postgrest
|
||||
# fwd service
|
||||
wget -O postgrest.service https://gi.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest_fwd.service
|
||||
cp postgrest_fwd.service /etc/systemd/system/
|
||||
|
||||
systemctl enable postgrest_fwd
|
||||
systemctl start postgrest_fwd
|
||||
systemctl status postgrest_fwd
|
||||
|
||||
# boquete marketplace service
|
||||
|
||||
#wget -O postgrest.service https://gi.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest_bm.service
|
||||
#cp postgrest_bm.service /etc/systemd/system/
|
||||
|
||||
#systemctl enable postgrest_bm
|
||||
#systemctl start postgrest_bm
|
||||
#systemctl status postgrest_bm
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user