DDNS Configuration

Good Morning:

This is probably an easy configuration issue but unfortunately, I am lost in the weeds. Any help or direction would be greatly appreciated. Thank you…

I am currently running 11.7.4 on ubuntu 18.04 using the meraki version of DDNS and GoDaddy as my DNS. I am currently running this as http, the ultimate goal is to put this behind a NGINX reverse-proxy using ssh. (I have installed this behind the reverse proxy and am getting the same results as I will describe next)

If I set the sub-domain in GoDaddy DNS to “Forward” and everything works perfectly except I am returned the DDNS url,

http://aegir-wkcqhwntrc.dynamic-m.com:8087/users/sign_in

my external port is 8087 but my internal port that gitlab is running on is 80

if I set the sub-domain to “Forward with masking” I get the following browser error

aegir-wkcqhwntrc.dynamic-m.com refused to connect.”

I have worked with the config url’s as discussed in a previous post to no avail.

#external_urlhttp://aegir-wkcqhwntrc.dynamic-m.com:8087

#external_urlhttp://172.16.1.200

external_url ‘http://git.aegirsystems.com

==> /var/log/gitlab/nginx/gitlab_access.log <==

172.16.1.1 - - [13/Feb/2019:13:05:13 +0000] “GET / HTTP/1.1” 302 122 “” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/-/metrics” for 127.0.0.1 at 2019-02-13 13:05:13 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET “/” for 127.0.0.1 at 2019-02-13 13:05:13 +0000
Processing by RootController#index as HTML
Redirected to http://aegir-wkcqhwntrc.dynamic-m.com:8087/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 7ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET “/users/sign_in” for 127.0.0.1 at 2019-02-13 13:05:13 +0000
Processing by SessionsController#new as HTML

==> /var/log/gitlab/gitlab-rails/sidekiq_exporter.log <==
[2019-02-13 13:05:13] 127.0.0.1 - - [13/Feb/2019:13:05:13 UTC] “GET /metrics HTTP/1.1” 200 2521 “-” “Prometheus/2.5.0”

==> /var/log/gitlab/gitlab-rails/production_json.log <==
{“method”:“GET”,“path”:"/-/metrics",“format”:“html”,“controller”:“MetricsController”,“action”:“index”,“status”:200,“duration”:18.01,“view”:0.96,“db”:0.0,“time”:“2019-02-13T13:05:13.358Z”,“params”:,“remote_ip”:null,“user_id”:null,“username”:null,“ua”:null,“correlation_id”:“77587793-abc8-4f13-b9d2-60762cde5ac2”}
{“method”:“GET”,“path”:"/",“format”:“html”,“controller”:“RootController”,“action”:“index”,“status”:302,“duration”:8.76,“view”:0.0,“db”:0.0,“location”:“http://aegir-wkcqhwntrc.dynamic-m.com:8087/users/sign_in",“time”:“2019-02-13T13:05:13.557Z”,“params”:[],“remote_ip”:“172.16.1.1”,“user_id”:null,“username”:null,“ua”:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“correlation_id”:“Kq4hhyS61Q7”}

==> /var/log/gitlab/gitlab-workhorse/current <==
2019-02-13_13:05:13.56849 aegir-wkcqhwntrc.dynamic-m.com:8087 127.0.0.1:0 - - [2019/02/13:13:05:13 +0000] “GET / HTTP/1.1” 302 122 “” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36” 0.108

==> /var/log/gitlab/nginx/gitlab_access.log <==
172.16.1.1 - - [13/Feb/2019:13:05:14 +0000] “GET /users/sign_in HTTP/1.1” 200 3606 “” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”

==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 200 OK in 1046ms (Views: 853.0ms | ActiveRecord: 34.7ms | Elasticsearch: 0.0ms)

==> /var/log/gitlab/gitlab-rails/production_json.log <==
{“method”:“GET”,“path”:"/users/sign_in",“format”:“html”,“controller”:“SessionsController”,“action”:“new”,“status”:200,“duration”:1047.66,“view”:853.0,“db”:34.67,“time”:“2019-02-13T13:05:13.607Z”,“params”:,“remote_ip”:“172.16.1.1”,“user_id”:null,“username”:null,“ua”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“correlation_id”:“Je4SrckQW92”}

==> /var/log/gitlab/gitlab-workhorse/current <==
2019-02-13_13:05:14.65891 aegir-wkcqhwntrc.dynamic-m.com:8087 127.0.0.1:0 - - [2019/02/13:13:05:14 +0000] “GET /users/sign_in HTTP/1.1” 200 8496 “” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36” 1.085

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/-/metrics” for 127.0.0.1 at 2019-02-13 13:05:28 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)