Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name gitlab.example.com;
- rewrite ^ https://$host$request_uri? permanent;
- }
- server {
- listen 443 ssl;
- server_name gitlab.example.com;
- ssl_certificate /etc/ssl/example.com.crt;
- ssl_certificate_key /etc/ssl/example.com.key;
- access_log /var/log/nginx/gitlab.example.com_access.log;
- error_log /var/log/nginx/gitlab.example.com_error.log;
- client_max_body_size 1G;
- location / {
- proxy_set_header Host $http_host;
- proxy_pass http://localhost:10080;
- }
- }
- server {
- listen 4567 ssl;
- server_name gitlab.example.com;
- ssl_certificate /etc/ssl/example.com.crt;
- ssl_certificate_key /etc/ssl/example.com.key;
- access_log /var/log/nginx/gitlab.example.com_registry_access.log;
- error_log /var/log/nginx/gitlab.example.com_registry_error.log;
- client_max_body_size 1G;
- location / {
- proxy_set_header Host $http_host;
- proxy_pass http://localhost:14567;
- }
- }
Add Comment
Please, Sign In to add comment