Advertisement
Guest User

Untitled

a guest
Dec 19th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 13.38 KB | None | 0 0
  1. server {                                                                                                                                                                                      
  2.     server_name <snip>;                                                                                                                                                            
  3.     listen 80;                                                                                                                                                                                
  4.     index index.html index.htm;                                                                                                                                                              
  5.     error_log /var/log/nginx/intranet_error.log error;                                                                                                                                        
  6.     access_log /var/log/nginx/intranet_access.log;                                                                                                                                            
  7.                                                                                                                                                                                              
  8.     location /git/ {                                                                                                                                                                          
  9.         include fastcgi_params;                                                                                                                                                              
  10.         fastcgi_split_path_info ^/(.+?\.git)(.*)$;                                                                                                                                            
  11.         fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend;                                                                                                                
  12.         fastcgi_param SCRIPT_NAME /usr/libexec/git-core/git-http-backend;                                                                                                                    
  13.         fastcgi_param REMOTE_USER $remote_user;                                                                                                                                              
  14.         fastcgi_param GIT_PROJECT_ROOT /data/repositories;                                                                                                                                    
  15.         fastcgi_param GIT_HTTP_EXPORT_ALL true;                                                                                                                                              
  16.         fastcgi_param PATH_INFO $uri;                                                                                                                                                        
  17.         fastcgi_pass <snip>:60002;                                                                                                                                            
  18.     }                                                                                                                                                                                                                                                                                                                                                                        
  19.                                                                                                                                                                                              
  20.     location /nfsen {                                                                                                                                                                        
  21.         include fastcgi_params;                                                                                                                                                              
  22.         fastcgi_split_path_info ^/nfsen/(.+?\.php)(.*)$;                                                                                                                                      
  23.         fastcgi_pass <snip>:8999;                                                                                                                                            
  24.         fastcgi_index nfsen.php;                                                                                                                                                              
  25.         fastcgi_param SCRIPT_FILENAME /srv/http/$fastcgi_script_name;                                                                                                                        
  26.         fastcgi_param REMOTE_USER $remote_user;                                                                                                                                              
  27.         fastcgi_param QUERY_STRING $query_string;                                                                                                                                            
  28.     }                                                                                                                                                                                        
  29.                                                                                                                                                                                              
  30.     location /icinga {                                                                                                                                                                        
  31.         include fastcgi_params;                                                                                                                                                              
  32.         fastcgi_pass <snip>:9000;                                                                                                                                          
  33.         fastcgi_index index.php;                                                                                                                                                              
  34.         fastcgi_split_path_info ^/icinga/(.+?\.php)(.*)$;                                                                                                                                    
  35.         fastcgi_param PATH_INFO $fastcgi_path_info;                                                                                                                                          
  36.         fastcgi_param SCRIPT_FILENAME /usr/share/webapps/icingaweb2/public/$fastcgi_script_name;                                                                                              
  37.         fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;                                                                                                                                    
  38.         fastcgi_param REMOTE_USER $remote_user;                                                                                                                                              
  39.     }
  40.  
  41.    location /buildbot/ {                                                                                                                                                                    
  42.         proxy_pass http://<snip>:8010/;                                                                                                                                  
  43.         proxy_set_header HOST $host;                                                                                                                                                          
  44.         proxy_set_header X-Real-IP $remote_addr;                                                                                                                                              
  45.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                                                                                                          
  46.         proxy_set_header X-Forwarded-Proto  $scheme;                                                                                                                                          
  47.         proxy_set_header X-Forwarded-Server  $host;                                                                                                                                          
  48.         proxy_set_header X-Forwarded-Host  $host;                                                                                                                                            
  49.     }                                                                                                                                                                                        
  50.                                                                                                                                                                                              
  51.     location /buildbot/sse/ {                                                                                                                                                                
  52.         proxy_set_header HOST $host;                                                                                                                                                          
  53.         proxy_set_header X-Real-IP $remote_addr;                                                                                                                                              
  54.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                                                                                                          
  55.         proxy_set_header X-Forwarded-Proto  $scheme;                                                                                                                                          
  56.         proxy_set_header X-Forwarded-Server  $host;                                                                                                                                          
  57.         proxy_set_header X-Forwarded-Host  $host;                                                                                                                                            
  58.         proxy_buffering off;                                                                                                                                                                  
  59.         proxy_pass http://<snip>:5000/sse/;                                                                                                                              
  60.     }                                                                                                                                                                                        
  61.                                                                                                                                                                                              
  62.     location /buildbot/ws {                                                                                                                                                                  
  63.         proxy_set_header HOST $host;                                                                                                                                                          
  64.         proxy_set_header X-Real-IP $remote_addr;                                                                                                                                              
  65.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                                                                                                          
  66.         proxy_set_header X-Forwarded-Proto  $scheme;                                                                                                                                          
  67.         proxy_set_header X-Forwarded-Server  $host;                                                                                                                                          
  68.         proxy_set_header X-Forwarded-Host  $host;                                                                                                                                            
  69.         proxy_http_version 1.1;                                                                                                                                                              
  70.         proxy_set_header Upgrade $http_upgrade;                                                                                                                                              
  71.         proxy_set_header Connection "upgrade";                                                                                                                                                
  72.         proxy_pass http://<snip>:5000/ws;                                                                                                                                
  73.         proxy_read_timeout 6000s;                                                                                                                                                            
  74.     }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement