Skip to content

Commit

Permalink
Added missing dockerfile entrypoint, tweaked README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arcward committed Sep 14, 2024
1 parent 20a32a9 commit 26b72e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ The behavior of the feedback system differs slightly between public channels and

### Timeout Behavior

- Feedback buttons automatically become inactive slightly before the Discord interaction
- Feedback buttons automatically become inactive slightly before the original Discord interaction
token expires (approximately 15 minutes).
- In both public/private channels, all buttons are removed except those buttons
which were selected by users. Those remaining buttons will remain visible, but
Expand Down
14 changes: 14 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
set -e

# Check if SSL certificates exist, if not, create self-signed ones
if [ ! -f "$DC_API_SSL_CERT" ] || [ ! -f "$DC_API_SSL_KEY" ]; then
echo "SSL certificates not found. Generating self-signed certificates..."
openssl req -x509 -newkey rsa:4096 -keyout "$DC_API_SSL_KEY" -out "$DC_API_SSL_CERT" -days 365 -nodes -subj "/CN=localhost"
echo "Self-signed certificates generated."
else
echo "Using existing SSL certificates."
fi

# Start the application
exec "$@"

0 comments on commit 26b72e3

Please sign in to comment.