Allow push (#59)

Introduce ALLOW_PUSH, if set to true, allows non-GET methods through the proxy
This commit is contained in:
Federico Gimenez
2020-12-02 14:58:19 +01:00
committed by GitHub
parent dfb6a5dea2
commit 536f0fc8a0
3 changed files with 28 additions and 10 deletions

View File

@@ -94,5 +94,8 @@ ENV MANIFEST_CACHE_SECONDARY_TIME="60d"
# In the default config, :latest and other frequently-used tags will get this value.
ENV MANIFEST_CACHE_DEFAULT_TIME="1h"
# Should we allow actions different than pull, default to false.
ENV ALLOW_PUSH="false"
# Did you want a shell? Sorry, the entrypoint never returns, because it runs nginx itself. Use 'docker exec' if you need to mess around internally.
ENTRYPOINT ["/entrypoint.sh"]