Certificate file name extensions unified (#354)
* Fix for default smtp certificate name This fixes the defaut smtp certificate file name from smtp.crt to smtp.cert as it is used throughout the postal code.
This commit is contained in:
committed by
Charlie Smurthwaite
parent
98daf6d30c
commit
41d9014d47
@@ -66,7 +66,7 @@ workers:
|
|||||||
smtp_server:
|
smtp_server:
|
||||||
port: 25
|
port: 25
|
||||||
tls_enabled: false
|
tls_enabled: false
|
||||||
tls_certificate_path: # Defaults to config/smtp.crt
|
tls_certificate_path: # Defaults to config/smtp.cert
|
||||||
tls_private_key_path: # Defaults to config/smtp.key
|
tls_private_key_path: # Defaults to config/smtp.key
|
||||||
proxy_protocol: false
|
proxy_protocol: false
|
||||||
log_connect: true
|
log_connect: true
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ server {
|
|||||||
listen 0.0.0.0:443 ssl;
|
listen 0.0.0.0:443 ssl;
|
||||||
root /opt/postal/app/public;
|
root /opt/postal/app/public;
|
||||||
server_name postal.yourdomain.com;
|
server_name postal.yourdomain.com;
|
||||||
ssl_certificate ssl/postal.crt;
|
ssl_certificate ssl/postal.cert;
|
||||||
ssl_certificate_key ssl/postal.key;
|
ssl_certificate_key ssl/postal.key;
|
||||||
|
|
||||||
# Generate using: openssl dhparam 4096 -out /etc/ssl/dhparam.pem
|
# Generate using: openssl dhparam 4096 -out /etc/ssl/dhparam.pem
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ postal start
|
|||||||
#
|
#
|
||||||
cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default
|
cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default
|
||||||
mkdir /etc/nginx/ssl/
|
mkdir /etc/nginx/ssl/
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.crt -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com"
|
openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.cert -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com"
|
||||||
service nginx reload
|
service nginx reload
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user