mirror of https://github.com/MISP/misp-docker
Explicit redirect to https instead of rewrite rule
parent
fae0b276b3
commit
580ec9f6d3
|
@ -1,12 +1,14 @@
|
||||||
# web service1 config.
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen 443 ssl http2;
|
listen [::]:80;
|
||||||
server_name web;
|
server_name localhost;
|
||||||
|
return 301 https://$server_name$request_uri;
|
||||||
if ($scheme != "https") {
|
}
|
||||||
rewrite ^ https://$host$uri permanent;
|
# web service1 config.
|
||||||
}
|
server {
|
||||||
|
listen 443 ssl http2 default_server;
|
||||||
|
listen [::]:443 ssl http2 default_server;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
# Path for SSL config/key/certificate
|
# Path for SSL config/key/certificate
|
||||||
ssl_certificate /etc/ssl/certs/nginx/misp.crt;
|
ssl_certificate /etc/ssl/certs/nginx/misp.crt;
|
||||||
|
|
Loading…
Reference in New Issue