Hello ,
I´m trying to install gitlab ce on Ubuntu 18.04. Nginx is installed and Jira and also GitLab.
I turned off nginx in the gitlab configuration. I want to use my own nginx since all pages are managed there. How do I have to customize the configuration for nginx and gitlab so the git lab can be reached via https on a subdomain
Best regards
That is currently my ngnix site-avaible file
server {
listen git.****.com:80;
server_name git.weinig.com;
error_log /var/log/nginx/git_error.log;
access_log /var/log/nginx/git_access.log;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/git.conf
server {
listen git.******.com:443 ;
server_name git.*****.com;
root /opt/gitlab/embedded/service/gitlab-rails/public;
error_log /var/log/nginx/git_error.log;
access_log /var/log/nginx/git_access.log;
ssl on;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
client_max_body_size 10M;
location / {
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-Proto https;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_pass http//127.0.0.1:85;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Frame-Options SAMEORIGIN;
}