mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-05 16:57:49 +02:00
Merge pull request #6122 from sheeprine/fix_nginx_http_redirect
Send 308 status on redirect from http to https
This commit is contained in:
commit
4e73921f9a
@ -141,6 +141,6 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
#server_name harbordomain.com;
|
#server_name harbordomain.com;
|
||||||
return 301 https://$$host$$request_uri;
|
return 308 https://$$host$$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user