Change domain for dev.koding.com · Issue #11513 · koding/koding · GitHub
Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Change domain for dev.koding.com #11513

Open

Description

@HuJK

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

Activity

  1. abdulrahmanmasri commented on Jan 8, 2019

    @abdulrahmanmasri

    the same issue, anyone help ?

  2. abdulrahmanmasri commented on Jan 13, 2019

    @abdulrahmanmasri

    Which file please ?

  3. fahadysf commented on Feb 8, 2019

    @fahadysf

    Guys, any luck on this?

  4. Wazabiii commented on Mar 14, 2019

    @Wazabiii

    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 :)

  5. unixfox commented on Apr 5, 2019

    @unixfox

    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
    
  6. daton89 commented on Jul 20, 2019

    @daton89

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions