boschkundendienst / guacamole-docker-compose

Guacamole with docker-compose using PostgreSQL, nginx with SSL (self-signed)
GNU General Public License v3.0
955 stars 398 forks source link

add to prepare.sh #75

Closed Zakspeed closed 1 year ago

Zakspeed commented 1 year ago
#genetate certificate .........
# Directory where the certificate files will be saved
SSL_DIR="nginx/ssl"
# Generate private key
openssl genrsa -out "$SSL_DIR/self-ssl.key" 2048
# Create certificate signing request (CSR)
openssl req -new -key "$SSL_DIR/self-ssl.key" -out "$SSL_DIR/self-ssl.csr"
# Generate self-signed certificate
openssl x509 -req -in "$SSL_DIR/self-ssl.csr" -signkey "$SSL_DIR/self-ssl.key" -out "$SSL_DIR/self.cert"
# Display completion message
echo "Certificate generated successfully."

God Job!!!

boschkundendienst commented 1 year ago

while your code is nice adding it will break docker-compose.yml if one comes to the idea to change the SSL_DIR variable and then wonders while docker-compose.yml would not find the certificates. Why not just clone my repo and make your own fork?

Zakspeed commented 1 year ago

Sorry, (I didn't explain it well). was to implement it in the prepare.sh

thank you so much. (didn't try it)