Skip to content

Commit 41a3fda

Browse files
committed
docs: update docs to include changes to config and addition of secrets
1 parent 2138edb commit 41a3fda

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@
3131
}
3232
}
3333
}
34-
},
35-
"postCreateCommand": {
36-
"config": "cp application/config.json.template application/config.json"
3734
}
3835
}

wiki/Edit-the-Config.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Overview
22

3-
In order to edit the configuration file of the bot, one has to login to the VPS and adjust the config file manually. Only members of the [Moderator](https://github.com/orgs/Together-Java/teams/moderators)-Team can do the following steps.
3+
## Config
44

5-
See [[Access the VPS]] for details of the login process.
5+
The configuration file for the bot is located under `/application/src/main/resources/config.json`
66

7-
# Guide
7+
Any new configuration additions made to this file must be loaded within the `Config.java` file.
88

9-
1. `ssh togetherjava` to login to the VPS
10-
2. Either `cd ~/docker-infra/master-bot` or `cd ~/docker-infra/develop-bot` to go to the directory of the corresponding bot
11-
3. Use `cd config`
12-
4. Edit the `config.json` file, for example `vim config.json` or `nano config.json`
13-
4. Save the file and [[restart the bot|Shutdown or restart the bot]].
9+
## Secrets
10+
11+
The secrets configuration file for the bot is located under `/application/secrets.json` and is used to store sensitive
12+
information such as API keys.
13+
14+
Any new configuration additions made to this file must be loaded within the `Secrets.java` file.

0 commit comments

Comments
 (0)