Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Nexus behind Nginx

Nexus OSS behind Nginx with SSL with Docker

Install dependencies

Docker and Docker Compose

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh

Clone the project in /opt/

  git clone https://github.com/maleki-it/nexus_nginx.git

Go to the project directory

  cd /opt/nexus_nginx

Change YourDomainName

vim docker-compose.yml 
#edit YourDomainName with your acutal Domain name
vim nginx.conf
#edit YourDomainName with your acutal Domain name

Install Nexus and Nginx & Certbot

docker compose up -d 

Get SSL Certification with Certbot

getting SSL certification without use public IP

docker exec -it certbot certbot -d YourDomainName --manual --preferred-challenges dns certonly

after this certbot ask you to set a txt dns record on your dns provider do it to get certs

restart nginx

docker restart nginx

Contributing

Contributions are always welcome!

License

MIT

About

Nexus Repository with Nginx as Reverse Proxy

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors