remove http2 in nginx confs

This commit is contained in:
tykayn 2023-08-28 23:43:54 +02:00
parent b3f2f2be46
commit 81bb6929d2
4 changed files with 10 additions and 10 deletions

View File

@ -15,7 +15,7 @@ export function makeHostFileForNextcloud (domainConfig) {
server { server {
# redirect from www to non-www # redirect from www to non-www
server_name ${domainConfig.domain}; server_name ${domainConfig.domain};
listen 80 http2; listen 80;
return 301 https://${domainWithoutWWW}$request_uri; return 301 https://${domainWithoutWWW}$request_uri;
} }
`; `;
@ -25,7 +25,7 @@ server {
server { server {
# redirect from non-www to www # redirect from non-www to www
server_name ${domainWithoutWWW}; server_name ${domainWithoutWWW};
listen 80 http2; listen 80;
return 301 https://${domainConfig.domain}$request_uri; return 301 https://${domainConfig.domain}$request_uri;
} }
`; `;
@ -35,7 +35,7 @@ server {
server { server {
# redirect to https from http no WWW # redirect to https from http no WWW
server_name ${domainWithoutWWW}; server_name ${domainWithoutWWW};
listen 80 http2; listen 80;
return 301 https://${domainWithoutWWW}$request_uri; return 301 https://${domainWithoutWWW}$request_uri;
} }
`; `;
@ -43,7 +43,7 @@ server {
redirectToWWWConf += `\tserver { redirectToWWWConf += `\tserver {
\t\t\t\t# redirect from www to HTTPS too \t\t\t\t# redirect from www to HTTPS too
server_name ${domainConfig.domain}; server_name ${domainConfig.domain};
listen 80 http2; listen 80;
return 301 https://${domainConfig.domain}$request_uri; return 301 https://${domainConfig.domain}$request_uri;
}` }`
} }

View File

@ -23,7 +23,7 @@ export function makeHostFileForPhpPages (domainConfig) {
\tserver { \tserver {
\t\t# redirect from www to non-www \t\t# redirect from www to non-www
\t\tserver_name ${domainConfig.domain}; \t\tserver_name ${domainConfig.domain};
\t\tlisten 80 http2; \t\t listen 80;
\t\treturn 301 https://${domainWithoutWWW}$request_uri; \t\treturn 301 https://${domainWithoutWWW}$request_uri;
\t} \t}
`; `;
@ -33,7 +33,7 @@ export function makeHostFileForPhpPages (domainConfig) {
\tserver { \tserver {
\t\t# redirect from non-www to www \t\t# redirect from non-www to www
\t\tserver_name ${domainWithoutWWW}; \t\tserver_name ${domainWithoutWWW};
\t\tlisten 80 http2; \t\t listen 80;
${certbotChallengeAcmeRedirect} ${certbotChallengeAcmeRedirect}
\t\treturn 301 http://${domainConfig.domain}$request_uri; \t\treturn 301 http://${domainConfig.domain}$request_uri;
\t} \t}
@ -44,7 +44,7 @@ ${certbotChallengeAcmeRedirect}
\tserver { \tserver {
\t\t# redirect to https from http no WWW \t\t# redirect to https from http no WWW
\t\tserver_name ${domainWithoutWWW}; \t\tserver_name ${domainWithoutWWW};
\t\tlisten 80 http2; \t\t listen 80;
\t\t# return 301 https://${domainWithoutWWW}$request_uri; \t\t# return 301 https://${domainWithoutWWW}$request_uri;
@ -54,7 +54,7 @@ ${certbotChallengeAcmeRedirect}
redirectToWWWConf += `\tserver { redirectToWWWConf += `\tserver {
\t\t\t\t# redirect from www to HTTPS too \t\t\t\t# redirect from www to HTTPS too
server_name ${domainConfig.domain}; server_name ${domainConfig.domain};
listen 80 http2; listen 80;
return 301 https://${domainConfig.domain}$request_uri; return 301 https://${domainConfig.domain}$request_uri;
}` }`
} }

View File

@ -12,7 +12,7 @@ export function makeHostFileForSymfony(domainConfig){
server { server {
server_name ${domainConfig.name}; server_name ${domainConfig.name};
listen 80 http2; listen 80;
return 301 https://${domainConfig.name}$request_uri; return 301 https://${domainConfig.name}$request_uri;
} }

View File

@ -25,7 +25,7 @@ export function makeHostFileForWordpress (domainConfig) {
server { server {
# redirect to https from http # redirect to https from http
server_name ${domainConfig.domain}; server_name ${domainConfig.domain};
listen 80 http2; listen 80;
return 301 https://${domainConfig.domain}$request_uri; return 301 https://${domainConfig.domain}$request_uri;
} }