Not loading Web IDE with caddy server as proxy
Summary
Stack while loading commit tree in Web IDE.
Got error in Browser console while use external link:
- Blocked loading mixed active content “http://git.brainode.com/docker/documize/files/master?format=json” main.68c84d66.chunk.js:138:61373
- Unhandled promise rejection TypeError: "e.response is undefined" main.68c84d66.chunk.js:174:60135
Got error in Browser console while use internal link 192.168..:7080 :
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://git.brainode.com/docker/documize/files/master?format=json. (Reason: CORS request did not succeed).
- Unhandled promise rejection TypeError: "e.response is undefined" main.68c84d66.chunk.js:174:60135
Steps to reproduce
Install gitlab with docker container using command:
docker run --detach \
--hostname git.brainode.com \
--publish 7443:443 --publish 7080:80 --publish 7022:22 \
--name gitlab \
--restart always \
--volume pathTo/cfg:/etc/gitlab \
--volume pathTo/logs:/var/log/gitlab \
--volume pathTo/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
Than configure gitlab.rb like it posted in gitlab-recipes My gitlab.rb:
gitlab_workhorse['listen_network']="tcp"
gitlab_workhorse['listen_addr']="0.0.0.0:7080"
nginx['enable'] = "false"
Use without external link, becouse with external link i can't connect to gitlab using as external link as internal.
Set up caddy file:
https://git.brainode.com {
log / /caddyserver/logs/git.access.log "{combined}"
errors /caddyserver/logs/git.errors.log
proxy / http://192.168.*.*:7080 {
fail_timeout 0s
header_upstream X-Forwarded-Ssl on
transparent
}
}
Example Project
Can't reproduce, problem on selfhosted version.
What is the current bug behavior?
Web IDE stack at loading.
What is the expected correct behavior?
Working Web IDE.
Relevant logs and/or screenshots
Have no idea what exactly logs i need to attach.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.4.5p335 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.1 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.1 Go Version: unknownGitLab information Version: 11.5.3 Revision: aa11737 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://git.brainode.com HTTP Clone URL: http://git.brainode.com/some-group/some-project.git SSH Clone URL: git@git.brainode.com:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...GitLab Shell version >= 8.4.1 ? ... OK (8.4.1) hooks directories in repos are links: ... 4/1 ... ok 2/2 ... ok 2/3 ... ok 1/4 ... ok 1/5 ... ok 3/6 ... ok 3/7 ... ok 1/9 ... repository is empty 4/10 ... ok 5/11 ... ok 3/12 ... repository is empty 5/13 ... ok 5/14 ... ok 5/15 ... ok 5/16 ... ok 2/17 ... ok 5/18 ... ok 6/19 ... ok 9/20 ... ok 5/21 ... ok 9/22 ... ok 9/23 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 4/1 ... yes 2/2 ... yes 2/3 ... yes 1/4 ... yes 1/5 ... yes 3/6 ... yes 3/7 ... yes 1/9 ... yes 4/10 ... yes 5/11 ... yes 3/12 ... yes 5/13 ... yes 5/14 ... yes 5/15 ... yes 5/16 ... yes 2/17 ... yes 5/18 ... yes 6/19 ... yes 9/20 ... yes 5/21 ... yes 9/22 ... yes 9/23 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.5) Git version >= 2.9.5 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 2
Possible fixes
Can't find