3 changed files with 45 additions and 36 deletions
@ -0,0 +1,27 @@ |
|||||
|
TargetDir: /srv/photo-bot |
||||
|
LogFile: /srv/photo-bot/bot.log |
||||
|
|
||||
|
WebInterface: |
||||
|
Listen: :8080 |
||||
|
PublicURL: http://localhost:8080 |
||||
|
OIDC: |
||||
|
DiscoveryUrl: https://accounts.google.com |
||||
|
ClientID: <YOUR_CLIENT_ID>.apps.googleusercontent.com |
||||
|
ClientSecret: <YOUR_CLIENT_SECRET> |
||||
|
GSuiteDomain: example.test |
||||
|
Scopes: |
||||
|
- profile |
||||
|
- email |
||||
|
Sessions: |
||||
|
EncryptionKey: # paste here the output of `openssl rand -base64 32` |
||||
|
AuthenticationKey: # paste here the output of `openssl rand -base64 32` |
||||
|
SecureCookie: false |
||||
|
|
||||
|
Telegram: |
||||
|
TokenGenerator: |
||||
|
AuthenticationKey: # paste here the output of `openssl rand -base64 32` |
||||
|
Token: <YOUR_TELEGRAM_BOT_TOKEN> |
||||
|
Debug: true |
||||
|
AuthorizedUsers: |
||||
|
- john |
||||
|
- jane |
||||
@ -0,0 +1,14 @@ |
|||||
|
#!/bin/sh /etc/rc.common |
||||
|
# photo-bot |
||||
|
|
||||
|
# Start late in the boot process |
||||
|
START=80 |
||||
|
STOP=20 |
||||
|
|
||||
|
start() { |
||||
|
cd /opt/photo-bot/etc/ && start-stop-daemon -c bot -u bot -x /opt/photo-bot/bin/photo-bot -b -S |
||||
|
} |
||||
|
|
||||
|
stop() { |
||||
|
start-stop-daemon -c bot -u bot -x /opt/photo-bot/bin/photo-bot -b -K |
||||
|
} |
||||
Loading…
Reference in new issue