Skip to content

Instantly share code, notes, and snippets.

@jeanfrancoisgratton
Created December 11, 2021 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanfrancoisgratton/150c5da18c3793f570b08badb873c62d to your computer and use it in GitHub Desktop.
Save jeanfrancoisgratton/150c5da18c3793f570b08badb873c62d to your computer and use it in GitHub Desktop.
nginx reverse proxy config for a nexus yum repo
# First server: Nexus main endpoint (UI and repos except docker)
server {
listen 1808 ssl http2;
server_name nexus.famillegratton.net;
ssl_certificate /etc/nginx/ssl/gitea-nexus-nginx-nas.crt;
ssl_certificate_key /etc/nginx/ssl/gitea-nexus-nginx-nas.key;
access_log logs/nexus.log main;
# allow large uploads of files
client_max_body_size 20480m;
# optimize downloading files larger than 1G
proxy_max_temp_file_size 2048m;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
proxy_set_header proxy_set_header X-Forwarded-Port 1808;
proxy_pass http://10.1.1.11:2937;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment