Add rustdeck-server

This commit is contained in:
thomas 2022-06-12 20:33:34 +02:00
parent f7730928e4
commit 81f42e2ee2
12 changed files with 58 additions and 2 deletions

View file

@ -0,0 +1,3 @@
/etc/default/hbbr
/var/lib/hbbr/blacklist.txt
/var/lib/hbbr/blocklist.txt

View file

@ -0,0 +1,7 @@
#DOWNGRADE_THRESHOLD=0.66
#DOWNGRADE_START_CHECK=1800s
#LIMIT_SPEED=4Mb/s
#TOTAL_BANDWIDTH=1024Mb/s
#SINGLE_BANDWIDTH=16Mb/s
#KEY=
#PORT=21117

View file

@ -0,0 +1,2 @@
#!/bin/env bash
/usr/bin/hbbr $([ "" != "$KEY" ] && echo --key $KEY) $([ "" != "$PORT" ] && echo --port $PORT)

View file

@ -6,7 +6,8 @@ After=network.target
[Service]
User=hbbr
Group=hbbr
ExecStart=/usr/bin/hbbr
EnvironmentFile=/etc/default/hbbr
ExecStart=/usr/bin/hbbr-service
PrivateTmp=true
PrivateDevices=true
ProtectHome=true

View file

@ -0,0 +1 @@
/etc/default/hbbs

View file

@ -0,0 +1,12 @@
#TEST_HBBS=
#ALWAYS_USE_RELAY=N
#MAX_DATABASE_CONNECTIONS
#DB_URL=./db_v2.sqlite3
#CONFIG_FILE=
#PORT=21116
#RELAY_SERVERS=
#RENDEZVOUS_SERVER=rs-ny.rustdesk.com,rs-sg.rustdesk.com,rs-cn.rustdesk.com
#SERIAL=0
#SOFTWARE_URL=
#KEY=

View file

@ -0,0 +1,10 @@
#!/bin/env bash
/usr/bin/hbbs \
$([ "" != "$KEY" ] && echo --key $KEY) \
$([ "" != "$RELAY_SERVERS" ] && echo --relay-servers $RELAY_SERVERS) \
$([ "" != "$PORT" ] && echo --port $PORT) \
$([ "" != "$CONFIG_FILE" ] && echo --config $CONFIG_FILE) \
$([ "" != "$SERIAL" ] && echo --serial $SERIAL) \
$([ "" != "$SOFTWARE_URL" ] && echo --software-url $SOFTWARE_URL) \
$([ "" != "$RENDEZVOUS_SERVER" ] && echo --rendezvous-servers $RENDEZVOUS_SERVER) \
$([ "" != "$CONFIG_FILE" ] && echo --config $CONFIG_FILE)

View file

@ -6,7 +6,8 @@ After=network.target
[Service]
User=hbbs
Group=hbbs
ExecStart=/usr/bin/hbbs
EnvironmentFile=/etc/default/hbbs
ExecStart=/usr/bin/hbbs-service
PrivateTmp=true
PrivateDevices=true
ProtectHome=true

View file

@ -0,0 +1 @@
/home/thomas/wks/git/debmaker/ressources/vaultwarden