edit readme, add env_template
This commit is contained in:
parent
7e347a2b5c
commit
646abba9ee
2 changed files with 18 additions and 7 deletions
10
README.md
10
README.md
|
|
@ -18,17 +18,13 @@ run un container temporaire (pour l'instant le bot ne sauve aucune data, donc il
|
|||
podman run --name urlab_viaduk --rm --env-file .env urbridge:latest
|
||||
```
|
||||
|
||||
il faut un fichier .env spécifiant les variables suivantes:
|
||||
|
||||
- DISCORD_TOKEN,
|
||||
- IRC_HOST, l'adresse du serveur irc
|
||||
- IRC_PORT, le port
|
||||
- NICKNAME, le nom du bridge sur irc
|
||||
il faut un fichier .env spécifiant un certain nombre variables (tokens, username ...) voir le fichier env_template
|
||||
|
||||
### sur le vps
|
||||
|
||||
si la doc (https://docs.podman.io/en/latest/markdown/podman-run.1.html) ne ment pas, --restart=unless-stopped restart le container, même après un reboot, la seule exception est quand l'utilisateur lui même stop le container manuelement
|
||||
```bash
|
||||
podman run --network host -d --name urlab_viaduk --rm --env-file .env urbridge:latest
|
||||
podman run --restart=unless-stopped --network host -d --name urlab_viaduk --env-file .env urbridge:latest
|
||||
```
|
||||
|
||||
### Matrix
|
||||
|
|
|
|||
15
env_template
Normal file
15
env_template
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
VERBOSE=true
|
||||
NICKNAME=v14duk
|
||||
|
||||
DISCORD_CHANNELS=14453456534687
|
||||
DISCORD_APP_ID=23436467685673
|
||||
DISCORD_TOKEN=sfsgdfgtoken
|
||||
|
||||
IRC_HOST=irc.libera.chat
|
||||
IRC_PORT=6697
|
||||
IRC_CHANNELS=#urlab
|
||||
|
||||
MATRIX_SERVER=matrix.urlab.be
|
||||
MATRIX_CHANNELS=irc-urlab
|
||||
MATRIX_TOKEN=token
|
||||
MATRIX_USER_ID=@urbridge:matrix.urlab.be
|
||||
Loading…
Reference in a new issue