Skip to content

Commit

Permalink
Add mapping to registry-pe URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tzeller committed Aug 2, 2021
1 parent ecc1279 commit 5d36331
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions comanage-registry-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ RUN mkdir -p ${COMANAGE_REGISTRY_DIR} \
&& chown -R www-data:www-data ${COMANAGE_REGISTRY_DIR}/app/tmp \
&& cd /var/www/html \
&& ln -s ${COMANAGE_REGISTRY_DIR}/app/webroot registry \
&& ln -s ${COMANAGE_REGISTRY_DIR}/app/webroot registry-pe \
&& rm -rf ${COMANAGE_REGISTRY_DIR}/local/*

RUN rm -rf /tmp/build
Expand Down
8 changes: 8 additions & 0 deletions comanage-registry-basic-auth/000-comanage.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ AuthUserFile "/etc/apache2/basic-auth"
Require valid-user
</Directory>

<Directory /var/www/html/registry-pe/auth/login>
AuthType Basic
AuthName "COmanage Registry Login"
AuthBasicProvider file
AuthUserFile "/etc/apache2/basic-auth"
Require valid-user
</Directory>

</VirtualHost>

0 comments on commit 5d36331

Please sign in to comment.