Next, install Postfix (or Sendmail) to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed
# - - - - - - - - - # Reverse Proxy # - - - - - - - - - proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; # Let PP know the clients real IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Let PP know that a proxy did forward this request proxy_set_header Host $http_host; # Set Proxy host info
proxy_http_version 1.1; # Required for WebSocket connection proxy_set_header Upgrade $http_upgrade; # Allow protocol switch to websocket proxy_set_header Connection "upgrade"; # Do protocol switch proxy_set_header X-Forwarded-Proto $scheme; # Let PP know that this connection used HTTP or HTTPS
client_max_body_size 500M; # Bump the max body size, you may want to upload huge stuff via the upload GUI proxy_buffering off;
listen [::]:443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate ...; # managed by Certbot ssl_certificate_key ...; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot