{
listen 80;
server_name registry.mygit.com;
client_max_body_size 2000M;
chunked_transfer_encoding on;
location / {
proxy_pass http://gitlab:5000;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto https;
# 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-Forwarded-Ssl on;
}
}
а server_name у тебя это на двоём домене ? он правильно указан?
я так прописываю: location / { proxy_pass http://localhost:6500; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }
server { listen 80; server_name registry.mygit.com; client_max_body_size 2000M; chunked_transfer_encoding on; location / { proxy_pass http://gitlab:5000; proxy_read_timeout 300; proxy_connect_timeout 300; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } так попробовал, тоже самое и с компа и джобы(( Error response from daemon: Get "https://registry.mygit.com/v2/": denied: access forbidden
Обсуждают сегодня