我正在评估Upsource,Jetbrain的源代码审查工具。
文档或2.0发行版(我能找到的)中没有任何内容解释如何启用SSL/TLS。如何做到这一点?我们不能提供源代码,除非通过HTTPS!
发布于 2015-06-13 06:25:23
按照说明书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/;
}
}https://stackoverflow.com/questions/30548436
复制相似问题