dodona-edu / dodona

🧑‍💻 Learn to code for secondary and higher education
https://dodona.be
MIT License
68 stars 22 forks source link

Enable additional host names #3299

Closed bmesuere closed 1 year ago

bmesuere commented 2 years ago

This issue tracks the steps that need to be taken to switch from dodona.ugent.be to dodona.be. This will be a multi step process.

Step 1: Enable naos.dodona.be

Code changes

Things to check

Administrative changes

Step 2: Enable dodona.be

Code changes

Things to check

Administrative changes

Step 3: Redirect all traffic to the new hostname

Code changes

Step 4: Cleanup

Code changes

I will use this occasion to update our (contact) information about the IDPs we work with in https://github.com/dodona-edu/wiki/blob/main/technical/authentication.md

jorg-vr commented 2 years ago

I don't think UJS is the issue.

But all uses of _url such as submissions_url or courses_url cause problems (see a fix in #4070)

I'll have a look if I can fix it in genral. Otherwise the solution might be replacing all uses of '_url' with '_path"

jorg-vr commented 1 year ago

Order of execution for production rollout:

  1. Enable dodona.be on:
    • [X] Check SAML
    • [x] Check O365
    • [x] Check GSuite
    • [x] Check Smartschool
    • [x] Check Elixir (Changes requested through panel)
    • [ ] Check Vlaanderen (Email sent)
    • [x] Check Surf
  2. Disable redirect
    • [x] Disable the redirect from dodona.be to dodona.ugent.be
  3. Fix LTI providers
    • [ ] Check Ufora
    • [ ] Check ILearn
chvp commented 1 year ago

Python tutor is broken on dodona.be (this has been fixed in the meantime).

jorg-vr commented 1 year ago

www.dodona.be does not work (only dodona.be)

jorg-vr commented 1 year ago

What exactly was meant by:

Line 42 of the routes file

?

Right now it is an empty line. The next line: get '/status' still works

bmesuere commented 1 year ago

@jorg-vr I think this was about what is now line 47 involving configuration.web_hosts:

    concern :mediable do
      member do
        constraints host: Rails.configuration.web_hosts do
          get 'media/*media', to: 'activities#media', constraints: {media: /.*/}, as: :media
        end
      end
    end