2015-05-30 43 views

回答

0

美好的一天!

以指令https://www.jetbrains.com/upsource/help/2.0/proxy_configuration.html

集描述Upsource的Nginx作爲代理 關閉防火牆端口1111,只留下Nginx的注意製作。

配置基本URL:

<upsource_home>\bin\upsource.bat configure --listen-port 1111 --base-url https://upsource.mydomain.com/ 

Nginx的配置文件:

server { 
     listen 443 ssl; 

     ssl_certificate <path_to_certificate> 
     ssl_certificate_key <path_to_key> 

     server_name localhost; 

     location/{ 
      proxy_set_header X-Forwarded-Host $http_host; 
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
      proxy_set_header X-Forwarded-Proto $scheme; 
      proxy_http_version 1.1; 

      # to proxy WebSockets in nginx 
      proxy_set_header Upgrade $http_upgrade; 
      proxy_set_header Connection "upgrade"; 
      proxy_pass http://localhost:1111/; 
     } 
     }