-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configs to use a proxy for viewing attachments
- Loading branch information
Showing
4 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
MONGO_URI=mongodb+srv://urihere | ||
LOG_URL_PREFIX=/logs | ||
# Your MongoDB Connection string, same as your bot's. | ||
CONNECTION_URI=mongodb+srv://urihere | ||
# Where should the logviewer serve your logs. Default: https://example.com/logs/LOGKEY | ||
LOG_URL_PREFIX=/logs | ||
# Listen address and port. Don't change them if you don't know what they do. | ||
HOST=0.0.0.0 | ||
PORT=8000 | ||
# Whether if the logviewer should use a proxy to view attachments. | ||
# If set to "no" (default), attachments will expire after 1 day and the logviewer won't be able to show the attachment. | ||
# Please be aware that this may violate Discord TOS and the proxy will have full access to your attachments. | ||
# Modmail/Logviewer is not affiliated with the proxy in any way. USE AT YOUR OWN RISK. | ||
USE_ATTACHMENT_PROXY=no | ||
ATTACHMENT_PROXY_URL=https://cdn.discordapp.xyz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
{ | ||
"name": "Modmail Log Viewer", | ||
"description": "A simple webserver to view self-hosted logs", | ||
"repository": "https://github.com/kyb3r/logviewer", | ||
"env": { | ||
"MONGO_URI": { | ||
"description": "MongoDB connection URI that contains your modmail logs.", | ||
"required": true | ||
"name": "Modmail Log Viewer", | ||
"description": "A simple webserver to view self-hosted logs", | ||
"repository": "https://github.com/kyb3r/logviewer", | ||
"env": { | ||
"MONGO_URI": { | ||
"description": "MongoDB connection URI that contains your modmail logs.", | ||
"required": true | ||
} | ||
}, | ||
"USE_ATTACHMENT_PROXY": { | ||
"description": "Whether if the logviewer should use a proxy to view attachments. If set to 'no', attachments will expire after 1 day. USE AT YOUR OWN RISK.", | ||
"required": false, | ||
"value": "no" | ||
}, | ||
"ATTACHMENT_PROXY_URL": { | ||
"description": "Proxy URL for viewing attachments.", | ||
"required": false, | ||
"value": "https://cdn.discordapp.xyz" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters