-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing dockerfile entrypoint, tweaked
README.md
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -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 "$@" |