@@ -2,3 +2,4 @@ db-uri = "postgresql://[USERNAME]:[PASSWORD]@[HOST_CONNECTION_STRING]"
|
|||||||
db-schemas = "www"
|
db-schemas = "www"
|
||||||
db-anon-role = "anonymous"
|
db-anon-role = "anonymous"
|
||||||
#jwt-secret = "myownlittlecleansecret"
|
#jwt-secret = "myownlittlecleansecret"
|
||||||
|
server-port = 3000
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=PostgREST
|
Description=PostgREST BM
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=postgrest
|
User=postgrest
|
||||||
Group=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
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||||
|
|
||||||
[Install]
|
[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
|
useradd -M -U -d /nonexistent -s /usr/sbin/nologin postgrest
|
||||||
|
|
||||||
cd /tmp
|
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
|
# fwd service
|
||||||
systemctl start postgrest
|
wget -O postgrest.service https://gi.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest_fwd.service
|
||||||
systemctl status postgrest
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user