Skip to content

Commit

Permalink
Fix port for https
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lamontagne committed Jun 27, 2013
1 parent 9f68fb3 commit 03855c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
:fqdn => node['fqdn'],
:gitlab_app_home => node['gitlab']['app_home'],
:https_boolean => node['gitlab']['https'],
:port => (node['gitlab']['https'] ? 443 : 80),
:ssl_certificate => node['gitlab']['ssl_certificate'],
:ssl_certificate_key => node['gitlab']['ssl_certificate_key']
)
Expand Down
2 changes: 1 addition & 1 deletion templates/default/nginx.default.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ upstream gitlab {
}

server {
listen *:80 default_server; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
listen *:<%= @port %> default_server; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
# server_name <%= @fqdn %>; # e.g., server_name source.example.com;
server_name <%= "git.demarque.com" %>; # e.g., server_name source.example.com;
server_tokens off; # don't show the version number, a security best practice
Expand Down

0 comments on commit 03855c7

Please sign in to comment.