Merge pull request #562 from C0rn3j/patch-1

Use IPv6 too in the Nginx config
This commit is contained in:
Morris Jobke
2017-09-19 23:52:20 +02:00
committed by GitHub

View File

@@ -41,6 +41,7 @@ webroot of your nginx installation. In this example it is
server {
listen 80;
listen [::]:80;
server_name cloud.example.com;
# enforce https
return 301 https://$server_name$request_uri;
@@ -48,6 +49,7 @@ webroot of your nginx installation. In this example it is
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name cloud.example.com;
ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
@@ -186,6 +188,7 @@ your nginx installation.
server {
listen 80;
listen [::]:80;
server_name cloud.example.com;
# enforce https
return 301 https://$server_name$request_uri;
@@ -193,6 +196,7 @@ your nginx installation.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name cloud.example.com;
ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;