mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
change tpyo and change nginx.conf to cert
This commit is contained in:
parent
d0da45960d
commit
9ee238d840
@ -24,11 +24,11 @@ http {
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name harbordomian.com;
|
||||
server_name harbordomain.com;
|
||||
|
||||
# SSL
|
||||
ssl_certificate /etc/nginx/conf.d/harbordomian.crt;
|
||||
ssl_certificate_key /etc/nginx/conf.d/harbordomian.key;
|
||||
ssl_certificate /etc/nginx/cert/harbordomain.crt;
|
||||
ssl_certificate_key /etc/nginx/cert/harbordomain.key;
|
||||
|
||||
# Recommendations from https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
|
||||
ssl_protocols TLSv1.1 TLSv1.2;
|
||||
@ -79,7 +79,7 @@ http {
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name harbordomian.com;
|
||||
server_name harbordomain.com;
|
||||
rewrite ^/(.*) https://$server_name$1 permanent;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user