Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with HTTPS #170

Closed
hacko2 opened this issue Feb 23, 2021 · 2 comments
Closed

Problem with HTTPS #170

hacko2 opened this issue Feb 23, 2021 · 2 comments

Comments

@hacko2
Copy link

hacko2 commented Feb 23, 2021

I did all in the example Issue 20, but i don't understand "You will need to rewrite all the project configuration (replaces proxy_pass with our value)."
Only get:
ui_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
ui_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
ui_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
ui_1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
ui_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
ui_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
ui_1 | sed: can't move '/etc/nginx/conf.d/default.confCaPkPD' to '/etc/nginx/conf.d/default.conf': Resource busy
ui_1 | sed: can't move '/etc/nginx/conf.d/default.confJogDGK' to '/etc/nginx/conf.d/default.conf': Resource busy
ui_1 | sed: can't move '/etc/nginx/conf.d/default.confepeBnm' to '/etc/nginx/conf.d/default.conf': Resource busy
docker-registry_ui_1 exited with code 1

@Joxit
Copy link
Owner

Joxit commented Feb 23, 2021

Hi,

Thank you for your issue, it seems that you are still using the environment variable REGISTRY_URL which is useless and cause this error when you are working with your own nginx configuration file.

Sorry, the part you did not understood is a typo 😅 should be "your value".

-You will need to rewrite all the project configuration (replaces proxy_pass with our value).
+You will need to rewrite all the project configuration (replaces proxy_pass with your value).

If the name of your registry container is docker-registry and ins listening the port 5000 you will use

      proxy_pass http://docker-registry:5000;

If you don't need the proxy pass, remove the location /2 block.

@hacko2
Copy link
Author

hacko2 commented Feb 23, 2021

Ok, thanks!!

@hacko2 hacko2 closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants