Skip to content

maleki-it/nexus_nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors