Guest User

gitlab.example.com.conf

a guest
Jul 16th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.00 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name gitlab.example.com;
  4.     rewrite ^ https://$host$request_uri? permanent;
  5. }
  6.  
  7. server {
  8.     listen 443 ssl;
  9.     server_name gitlab.example.com;
  10.  
  11.     ssl_certificate /etc/ssl/example.com.crt;
  12.     ssl_certificate_key /etc/ssl/example.com.key;
  13.  
  14.     access_log /var/log/nginx/gitlab.example.com_access.log;
  15.     error_log /var/log/nginx/gitlab.example.com_error.log;
  16.  
  17.     client_max_body_size 1G;
  18.  
  19.     location / {
  20.         proxy_set_header Host $http_host;
  21.         proxy_pass http://localhost:10080;
  22.     }
  23.  
  24. }
  25.  
  26. server {
  27.     listen 4567 ssl;
  28.     server_name gitlab.example.com;
  29.  
  30.     ssl_certificate /etc/ssl/example.com.crt;
  31.     ssl_certificate_key /etc/ssl/example.com.key;
  32.  
  33.     access_log /var/log/nginx/gitlab.example.com_registry_access.log;
  34.     error_log /var/log/nginx/gitlab.example.com_registry_error.log;
  35.  
  36.     client_max_body_size 1G;
  37.  
  38.     location / {
  39.         proxy_set_header Host $http_host;
  40.         proxy_pass http://localhost:14567;
  41.     }
  42.  
  43. }
Add Comment
Please, Sign In to add comment