mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-21 07:49:34 +01:00
7 lines
399 B
Bash
Executable File
7 lines
399 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if [ ! -f /etc/nginx/cert/privkey.pem ] && [ ! -f /etc/nginx/cert/cert.pem ]; then
|
|
echo "--> Generating self-signed cert. This should not be used in production"
|
|
openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/cert/privkey.pem -out /etc/nginx/cert/cert.pem -sha256 -nodes -subj "/O=Ansible Semaphore/OU=Production Test/CN=github.com\/ansible-semaphore\/semaphore"
|
|
fi
|