Hello,
I have switched from Docker Gitlab to Gitlab directly on debian and use it in combination with Plesk now I have the connection to Gitlab with a subdomain managed but as soon as I make Gitlab reconfigure all folder permissions are changed again and then I get a permanent 502 error because my domain user does not come to the folders, I also gave my user test white root permissions and the git groups but even then not as soon as I set chmod 775 /var/opt/gitlab recursive I get limited access to gitlab.
These are my nginx settings pointing to a conf:
location ~ / {
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
# for manual installation
root /home/git/gitlab/public;
# for omnibus installation
# root /opt/gitlab/embedded/service/gitlab-rails/public;
try_files $uri $uri/index.html $uri.html @gitlab;
}
if a file, which is not found in the root folder is requested,
then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {
proxy_read_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_connect_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
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_pass http://gitlab;
}
This is my config
upstream gitlab {
# for manual installation
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
# for omnibus installation
server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket;
}
Hope for a solution