diff options
author | Mike Crute <mike@crute.us> | 2023-12-03 11:40:44 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-12-03 11:40:44 -0800 |
commit | ef83557946cdf9550f8b290c98fe05665f4a7cb7 (patch) | |
tree | 243cb8e5477ad5fc5f2d67ea1b71d31c42e531c9 | |
parent | d2eda72dd070d65897bcf6218ce4628426bc3cf4 (diff) | |
download | dockerfiles-ef83557946cdf9550f8b290c98fe05665f4a7cb7.tar.bz2 dockerfiles-ef83557946cdf9550f8b290c98fe05665f4a7cb7.tar.xz dockerfiles-ef83557946cdf9550f8b290c98fe05665f4a7cb7.zip |
nginx: upgrade, add redirects
-rw-r--r-- | nginx-common/conf/nginx.conf | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nginx-common/conf/nginx.conf b/nginx-common/conf/nginx.conf index 33e2ad9..f5d5c03 100644 --- a/nginx-common/conf/nginx.conf +++ b/nginx-common/conf/nginx.conf | |||
@@ -70,6 +70,8 @@ http { | |||
70 | resolver 8.8.4.4 8.8.8.8 valid=300s; | 70 | resolver 8.8.4.4 8.8.8.8 valid=300s; |
71 | resolver_timeout 5s; | 71 | resolver_timeout 5s; |
72 | 72 | ||
73 | http2 on; | ||
74 | |||
73 | map $http_host $can_redirect { | 75 | map $http_host $can_redirect { |
74 | hostnames; | 76 | hostnames; |
75 | 77 | ||
@@ -92,6 +94,10 @@ http { | |||
92 | *.as398223.net 1; | 94 | *.as398223.net 1; |
93 | frompythonimportpodcast.com 1; | 95 | frompythonimportpodcast.com 1; |
94 | *.frompythonimportpodcast.com 1; | 96 | *.frompythonimportpodcast.com 1; |
97 | believedoubtseek.org 1; | ||
98 | *.believedoubtseek.org 1; | ||
99 | believedoubtseek.com 1; | ||
100 | *.believedoubtseek.com 1; | ||
95 | } | 101 | } |
96 | 102 | ||
97 | server { | 103 | server { |
@@ -111,8 +117,8 @@ http { | |||
111 | } | 117 | } |
112 | 118 | ||
113 | server { | 119 | server { |
114 | listen *:443 ssl http2 default_server; | 120 | listen *:443 ssl default_server; |
115 | listen [::]:443 ssl http2 default_server; | 121 | listen [::]:443 ssl default_server; |
116 | 122 | ||
117 | access_log /logs/default_https_vhost.log combined_host; | 123 | access_log /logs/default_https_vhost.log combined_host; |
118 | 124 | ||