Remove the redirection from HTTP to HTTPS from the mastodon vhost

This is already done in the certbot vhost
(https://gitea.kosmos.org/kosmos/chef/src/branch/master/site-cookbooks/kosmos-nginx/templates/default/nginx_conf_certbot.erb)
and it redirects every request to HTTPS, breaking Let's Encrypt
validation

Fixes #110
This commit is contained in:
Greg Karékinian 2019-10-28 11:18:31 +01:00
parent 77508c62a9
commit 0b579b1fea
2 changed files with 1 additions and 7 deletions

View File

@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org'
license 'MIT' license 'MIT'
description 'Installs/Configures kosmos-mastodon' description 'Installs/Configures kosmos-mastodon'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0' version '0.2.1'
depends "kosmos-nginx" depends "kosmos-nginx"
depends "kosmos-nodejs" depends "kosmos-nodejs"

View File

@ -4,12 +4,6 @@ server {
include <%= @shared_config_path %>; include <%= @shared_config_path %>;
} }
server {
listen 80;
server_name <%= @server_name %>;
return 301 https://$server_name$request_uri;
}
map $http_upgrade $connection_upgrade { map $http_upgrade $connection_upgrade {
default upgrade; default upgrade;
'' close; '' close;