GitLab 7.x HTTPS Configuration

GitLab


nano /var/opt/gitlab/nginx/etc/gitlab-http.conf


BEFORE

 

server {

 

   listen *:80;

 

   server_name host.com;

 

   server_tokens off;     # don’t show the version number, a security best practice

 

   root /opt/gitlab/embedded/service/gitlab-rails/public;

 

 

 

 


AFTER

 

server {

 

  listen *:443 ssl;

 

  server_name host.com;

 

  server_tokens off;     # don’t show the version number, a security best practice

 

  root /opt/gitlab/embedded/service/gitlab-rails/public;

 

  ssl_certificate /var/opt/gitlab/nginx/ssl/server.crt;

 

  ssl_certificate_key /var/opt/gitlab/nginx/ssl/server.key;


Leave a Reply