Lets encrypt at docker

I have gitlab ce at docker. Docker porst are 180 and 444. At router I redirect a ports 443 to docker’s 444 and 80 to 180. So when you use my domain, all is ok.

I try http://gitlab.mydomen.net/.well-known/ address, but it is not ok.I see “You need to sign in or sign up before continuing.”. After login => 404…

I dont know, what I have bad, but I can not use lets encrypt.
external_url ‘https://gitlab.mydomen.net
letsencrypt[‘enable’] = true
letsencrypt[‘contact_emails’] = [‘myEmail@gmail.com’]

nginx[‘enable’] = true
'# nginx[‘client_max_body_size’] = ‘250m’
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 80

Problem is, that I’m a new with gitlab and i’m not sure with some settings…

I have self signed certificate and with this is ok. But lets encrypt no. Whats bad? I read a many topics, but nothing. After i changed config, I put gitlab-ctl reconfigure and gitlab-ctl restart…

Thanks for any help

Heya,

404 error appear when the given URL refers to a server name that doesnt exist.

I assume that you already tried rebooting your nginx with:
sudo systemctl reload nginx

If you have could you post your nginx server block config (usually /etc/nginx/sites-enabled/file.conf ) and the last few lines of Nginx’s error log so that we can have more info by running :

tail -n 30 /var/log/nginx/error.log

Thanks a lot. I think that problem will be docker… so i used self signed certificate…

at /var/log/ i dont have dir nginx… at etc i dont have nginx dir… All parts of nginx i had commented. Only I have
nginx[‘enable’] = true
'# nginx[‘client_max_body_size’] = ‘250m’
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 80