Skip to content

Commit

Permalink
fix: Default value for NGINX_PROXY_HEADER_Host is $http_host
Browse files Browse the repository at this point in the history
Remove the Proxy header from default.conf

fixes #113
  • Loading branch information
Joxit committed Jan 19, 2020
1 parent f56cd05 commit 8b7bd6c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ This web user interface uses [Riot](https://github.com/Riot/riot) the react-like
- Yes you can, you must first configure your docker client. (see [#76](https://github.com/Joxit/docker-registry-ui/issues/76))
- What does Mixed Content error mean ?
- This means you are using a UI with HTTPS and your registry is using HTTP (unsecured). When you are on a HTTPS site, you can't get HTTP content. Upgrade you registry with a HTTPS connection.
- Why the default nginx `Host` is set to `$http_host` ?
- This fixes the issue [#88](https://github.com/Joxit/docker-registry-ui/issues/88). More about this in [#113](https://github.com/Joxit/docker-registry-ui/issues/113).

Need more informations ? Try my [examples](https://github.com/Joxit/docker-registry-ui/tree/master/examples) or open an issue.

Expand Down
2 changes: 2 additions & 0 deletions arm32v7-static.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ LABEL maintainer="Jones MAGLOIRE @Joxit"

WORKDIR /usr/share/nginx/html/

ENV NGINX_PROXY_HEADER_Host '$http_host'

COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
COPY dist/scripts/docker-registry-ui-static.js /usr/share/nginx/html/scripts/docker-registry-ui.js
Expand Down
2 changes: 2 additions & 0 deletions arm64v8-static.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ LABEL maintainer="Jones MAGLOIRE @Joxit"

WORKDIR /usr/share/nginx/html/

ENV NGINX_PROXY_HEADER_Host '$http_host'

COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
COPY dist/scripts/docker-registry-ui-static.js /usr/share/nginx/html/scripts/docker-registry-ui.js
Expand Down
2 changes: 2 additions & 0 deletions debian-static.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ LABEL maintainer="Jones MAGLOIRE @Joxit"

WORKDIR /usr/share/nginx/html/

ENV NGINX_PROXY_HEADER_Host '$http_host'

COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
COPY dist/scripts/docker-registry-ui-static.js /usr/share/nginx/html/scripts/docker-registry-ui.js
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/docker-registry-ui-static.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scripts/docker-registry-ui.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ server {
#! if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
#! return 404;
#! }
#! proxy_set_header Host $http_host;
#! ${NGINX_PROXY_HEADERS}
#! proxy_pass ${REGISTRY_URL};
#! }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "1.4.1",
"version": "1.4.2",
"scripts": {
"build": "./node_modules/gulp/bin/gulp.js build"
},
Expand Down
2 changes: 2 additions & 0 deletions static.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ LABEL maintainer="Jones MAGLOIRE @Joxit"

WORKDIR /usr/share/nginx/html/

ENV NGINX_PROXY_HEADER_Host '$http_host'

COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /usr/app/dist/ /usr/share/nginx/html/
COPY --from=builder /usr/app/dist/scripts/docker-registry-ui-static.js /usr/share/nginx/html/scripts/docker-registry-ui.js
Expand Down

0 comments on commit 8b7bd6c

Please sign in to comment.