Hi,
I have been going at this for 7 days now, I need help please:
ProGet running in a Docker container on an Ubuntu Linux system.
Dropping NuGet packages to drop-folders' and pulling NuGet packages all work fine.
The problem I have is with Visual Studio 2019 which requires an https connection to ProGet to publish (via Docker).
For translation of https to http I am using an Nginx reverse-proxy server, which works fine for NuGet pulls and dropping NuGet packages
Even though my question is more on Nginx, it is strongly related to ProGet and needs a ProGet solution.
Has someone used Nginx successfully with ProGet?
I suspect the Nginx server configuration is the issue.
Does someone have a working Nginx server configuration for ProGet?
Notes:
- Using a public certificate with sub-domains (*.xxx.com)
- Local DNS server for resolving URL's, no issues here
- ProGet is also installed in Windows and VS publishes fine.
- http://devops.xxx.com:81 maps over to ProGet docker internal port 80
This is the Nginx server configuration:
Does someone see something wrong in here?
server
{
listen 443 ssl;
ssl_certificate /etc/ssl/cert/STAR_xxx_com.crt;
ssl_certificate_key /etc/ssl/cert/STAR_xxx_com.key;
server_name proget.xxx.com;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
# Disable any limits to avoid HTTP 413 for large image uploads
# ProGet requirement for VS to publish to ProGet
client_max_body_size 0;
location /
{
proxy_pass http://devops.xxx.com:81; # The ProGet docker installation
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
}
}