ยง2024-10-06
-
failed to redirect!
-
/etc/nginx-sites-enabled/upstream-43000
# port 43000, hc4Nas01.yushei.net:43000 gitlab server
server {
server_name munetaka.me:43000;
charset utf-8;
location / {
proxy_pass http://hc4nas01.yushei.net:43000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host munetaka.me;
proxy_set_header X-Forwarded-Port 43000;
# WebSocket-specific settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
# Adjust client max body size if needed
client_max_body_size 1024m; # This sets the maximum upload size to 1024 MB
}
listen 43000 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/munetaka.me/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/munetaka.me/privkey.pem; # managed by Certbot
}
From another web page I used
<th><a href="https://munetaka.me:43000/" target="_blank">https://munetaka.me:43000 --> http://hc4nas01.yushei.net:43000 Gitlab</a></th>
When cliked on the link, https://munetaka.me:43000 supposedly will will go "https://munetaka.me:43000/users/sign_in" but it failed at "https://munetaka.me/users/sign_in" that is a gitlabe saerver?
add `external_url 'https://munetaka.me:43000' in /etc/gitlab/gitlab.rb
After I add external_url 'https://munetaka.me:43000' in /etc/gitlab/gitlab.rb and sudo gitlab-ctl reconfigure
it is not working
It will say a http call was directed to hhtps: