如何在 Jetbrains Upsource 2.0 中启用 HTTPS

How do you enable HTTPS in Jetbrains Upsource 2.0

我正在评估 Jetbrain 的源代码审查工具 Upsource。

文档或 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/;
         }
       }

Upsource 2018 已更改;它有 built-in TLS support:

There are several ways to set up an encrypted HTTPS connection with TLS(SSL) between your Upsource server and its clients.

  • Use Upsource's built-in TLS. You can configure Upsource to run in the HTTPS mode:

    • from Configuration Wizard, during the initial Upsource installation or upgrade

    • from the command line, enabling (and disabling as well) HTTPS for your existing Upsource installation

  • Use a third-party TLS-terminating proxy server. This option is preferable when you have to run Upsource behind a proxy server for other reasons than encryption. See Proxy configuration for details.

You can switch from a third-party TLS-terminating proxy to the Upsource built-in TLS and vice-versa at any time regardless of your current settings.