I use a Swag container reverse proxy to map my self-hosted services to the public internet. However, I found that when using VSCode to pull repository content, the authorization page returns an incorrect link protocol to the browser. It converts the HTTP protocol to HTTPS. What is causing this issue?
Here is the Gitea Nginx configuration file:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.mydomain.com;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.1.139;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/gitea)?/info/lfs {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.1.139;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}