반응형
docker run -d -p 8081:8081 --name nexus sonatype/nexus3
server { listen *:80; server_name your.domain.com; # allow large uploads of files - refer to nginx documentation client_max_body_size 1G; # optimize downloading files larger than 1G - refer to nginx doc before adjusting #proxy_max_temp_file_size 2G; location / { proxy_pass http://localhost:8081; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
# stop nginx > nginx -s stop certbot --authenticator standalone --installer nginx -d your.domain.com
server { listen 443 ssl; # managed by Certbot server_name your.domain.com; # allow large uploads of files - refer to nginx documentation client_max_body_size 1G; # optimize downloading files larger than 1G - refer to nginx doc before adjusting #proxy_max_temp_file_size 2G; location / { proxy_pass http://localhost:8081; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # nginx ssl mixed content setting proxy_set_header X-Forwarded-Proto "https"; } ssl_certificate /etc/letsencrypt/live/your.domain.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/your.domain.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot }
#defualt admin id / password id : admin password : admin123
반응형