sergk / nexus3-ssl Goto Github PK
View Code? Open in Web Editor NEWDocker compose, nexus3 with ssl support
Docker compose, nexus3 with ssl support
@SergK (I'm also @samrocketman) do you mind if I propose a change which dual purposes the domain SERVER_NAME
to also be used as a docker registry?
This would effectively get rid of DOCKER_DEV_NAME
, DOCKER_VIRTUAL_NAME
, and UPSTREAM_DOCKER_REPO
from env.config
.
Example nginx config:
upstream nexus {
server nexus:8081;
}
upstream docker-hosted {
#port of the hosted docker registry
server nexus:8082;
}
...
server {
...
location / {
#proxypass docker registry if docker client is used
if ($http_user_agent ~ docker) {
proxy_pass http://docker-hosted;
}
#fall back to the web browser (because first proxy_pass wins)
proxy_pass http://nexus;
...
}
}
Let's say for example, your nexus frontend is hosted at https://nexus.sandbox.example.com/
(per the env.config
SERVER_NAME
). The above pseudo code nginx.config.tpl
would essentially allow the Nexus frontend to be visited by a browser but also allow docker commands with it. It would be pretty seamless.
docker login nexus.sandbox.example.com
docker push nexus.sandbox.example.com/my_docker_image:latest
I got the idea from the Nexus blog on configuring nginx with Nexus.
Regarding the configuration JSON in https://github.com/SergK/nexus3-ssl/tree/master/nexus/json
Is there any easy way to get JSON from my current configuration? How did you build out and write those JSON files? I have been reading Nexus documentation on scripting but it's not really clear to me.
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.