Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
fix: missing env var for ip banlist
Browse files Browse the repository at this point in the history
Fixes #25
  • Loading branch information
Subtixx committed Apr 28, 2023
1 parent a4aefd8 commit 9d073b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/GitLink.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ENV MATTERMOST_CHANNEL_ID=""
ENV SPACE_URL=""
ENV SPACE_PROJECT_ID=""
ENV AUTHORIZATION_TOKEN=""
ENV REPORT_UNAUTHORIZED="true"
ENV IP_BANLIST_FILE="ip_banlist.json"

WORKDIR /usr/src/app

Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ function createServer() {
}
catch (e) {
console.log(e);
mattermostApi.CreateMessage(process.env.MATTERMOST_CHANNEL_ID, "Uncaught exception: " + e);
res.writeHead(500, {'Content-Type': 'text/plain'});
res.write("Error: " + e + "\n\n" + body + "\n\n");
res.end();
Expand Down

0 comments on commit 9d073b3

Please sign in to comment.