Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Change domain for dev.koding.com #11513

Open
HuJK opened this issue Jan 5, 2019 · 8 comments
Open

Change domain for dev.koding.com #11513

HuJK opened this issue Jan 5, 2019 · 8 comments

Comments

@HuJK
Copy link

HuJK commented Jan 5, 2019

koding_1 | [social] INFO Trying to connect to http://dev.koding.com:8090/kontrol/kite
koding_1 | 2019-01-05 19:05:16 [kloud] INFO Dialing 'kontrol' kite: http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO http://dev.koding.com:8090/kontrol/kite: disconnected, trying to reconnect...
koding_1 | [social] INFO Trying to connect to http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO http://dev.koding.com:8090/kontrol/kite: disconnected, trying to reconnect...
koding_1 | 2019-01-05 19:05:33 [kloud] INFO Dialing 'kontrol' kite: http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO Trying to connect to http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO http://dev.koding.com:8090/kontrol/kite: disconnected, trying to reconnect...
koding_1 | 2019-01-05 19:05:52 [kloud] INFO Dialing 'kontrol' kite: http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO Trying to connect to http://dev.koding.com:8090/kontrol/kite
koding_1 | [social] INFO http://dev.koding.com:8090/kontrol/kite: disconnected, trying to reconnect...

This log in the docker.

How to change the domain drom dev.koding.com to my own domain?

image

@abdulrahmanmasri
Copy link

the same issue, anyone help ?

@ghost
Copy link

ghost commented Jan 10, 2019

you can change the config using

docker exec -it koding-docker-compose_koding_1 bash

@abdulrahmanmasri
Copy link

Which file please ?

@ghost
Copy link

ghost commented Jan 13, 2019

i dont know yet im completely new in docker and have no experience

@fahadysf
Copy link

fahadysf commented Feb 8, 2019

Guys, any luck on this?

@Wazabiii
Copy link

I had the same issue.

  • Login to the container:
    docker exec -it kodingdockercompose_koding_1 bash

  • Go to the config dir:
    root@23597a836aa5:/opt/koding# cd config

  • List all files containing dev.koding.com:
    root@23597a836aa5:/opt/koding/config# grep -ri dev.koding.com .

Should return:

./generateKonfig.coffee:      'dev.koding.com' : '127.0.0.1'
./main.default.coffee:    main: options.host ? 'dev.koding.com'
./main.default.coffee:  options.hostname or= "dev.koding.com"
./credentials.default.coffee:    redirectUri: 'http://dev.koding.com:8090/-/oauth/github/callback'
./credentials.default.coffee:    redirectUri: "http://dev.koding.com:8090/-/oauth/facebook/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/google/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/twitter/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/linkedin/callback"
./main.dev.coffee:    main: options.host ? 'dev.koding.com'
./main.dev.coffee:  options.hostname or= "dev.koding.com"
  • Edit each file and replace dev.koding.com with your host.
    tips for vi:
:%s/dev.koding.com/localhost/g
:wq
root@23597a836aa5:/opt/koding/config# vi ./generateKonfig.coffee
root@23597a836aa5:/opt/koding/config# vi ./main.default.coffee
root@23597a836aa5:/opt/koding/config# vi ./credentials.default.coffee
root@23597a836aa5:/opt/koding/config# vi ./main.dev.coffee
  • Now you shouldn't see any dev.koding.com:
root@23597a836aa5:/opt/koding/config# grep -ri dev.koding.com .
root@23597a836aa5:/opt/koding/config#
  • Exit the container:
root@23597a836aa5:/opt/koding/config# exit
exit
  • Restart the stack
    docker-compose restart

now I have localhost on the screen and no crash :)

@unixfox
Copy link

unixfox commented Apr 5, 2019

You need to add in the docker-compose.yml at the 6th line (command):

  • --hostname for the main domain
  • --host for the domain of the instance (the API will communicate with it)

Example:

command: --version master --hostname example.org --host koding.example.org

@daton89
Copy link

daton89 commented Jul 20, 2019

I changed the host and hostname as @unixfox suggested and it worked!

But the koding service still try to connect to koding.mydomain.com/kontrol/kite and fail.

It try to reconnect infinitely and I'm stuck in the stack initialize, when i check the access token for a digital ocean stack it goes in timeout.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants