2
我正在評估Upsource,Jetbrain的源代碼審查工具。如何在Jetbrains Upsource 2.0中啓用HTTPS
文檔或2.0發行版中沒有任何內容(我可以找到)解釋如何啓用SSL/TLS。如何才能做到這一點?除了通過HTTPS之外,我們無法提供源代碼!
我正在評估Upsource,Jetbrain的源代碼審查工具。如何在Jetbrains Upsource 2.0中啓用HTTPS
文檔或2.0發行版中沒有任何內容(我可以找到)解釋如何啓用SSL/TLS。如何才能做到這一點?除了通過HTTPS之外,我們無法提供源代碼!
美好的一天!
以指令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/;
}
}