Skip to content

Commit

Permalink
[core] (fix): wrong prefix for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboMetalurgico committed Nov 26, 2023
1 parent 00ec68d commit 77fe213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ This release includes a lot of changes and improvements, so check the changelog

- [NEW] Add configuration system
- Now you can configure the system (including server port) editing the `bundle/config/config.json` file
- You can also use enviroment `ARUNA_<PROPERTY>` variables to override the configuration file
- You can also use enviroment `ARUNACORE_<PROPERTY>` variables to override the configuration file

- [NEW] Add `masterkey` to allow access to restricted endpoints and commands
- You can set the masterkey in the configuration file or in the enviroment variable `ARUNA_MASTERKEY`
- You can set the masterkey in the configuration file or in the enviroment variable `ARUNACORE_MASTERKEY`
- If a masterkey is not provided, all restricted endpoints and commands will be disabled and will return a `503` error

- [NEW] Create a connection structure
Expand Down
4 changes: 2 additions & 2 deletions src/main/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ webs.on('message', (message) => {
logger.info('Message received:', message);
});

if (process.env.FINISH_IN_SECONDS) {
const seconds = parseInt(process.env.FINISH_IN_SECONDS);
if (process.env.ARUNACORE_FINISH_IN_SECONDS) {
const seconds = parseInt(process.env.ARUNACORE_FINISH_IN_SECONDS);
logger.warn(`Finishing in ${seconds} seconds...`);
setTimeout(() => {
webs.finishWebSocket();
Expand Down

0 comments on commit 77fe213

Please sign in to comment.