-
Notifications
You must be signed in to change notification settings - Fork 3
This should make dynamic the wwwroot based on request. #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
your brilliant solution could have a $path and $url customisable (if the path is not 'moodle' and also if the sysadmin wants another url). So I would propose that you rebase your work on the PR #12 (once merged) and make it adjustable. you can ping me if you want to know but it is no more than a
in root/etc/e-smith/templates/var/www/moodle/web/config.php/10base |
I would like to propose a different approach on configuration parameters. I envision these ones:
Pseudocode should be something like: Obviuosly this needs testing. And this would be probably needs to be revised if and when we implement vhosts. |
|
I'm not sure to offer the http protocol is a good point, we should enforce the security by a mandatory https, of course IMHO For your 'route' property i don't catch your idea, what will be the default value of 'route'. A good habit in the e-smith database is to give a default value, either by a value set in the default configuration database or directly in the code. You are right the next nfr are the virtualhost.....you should set up a new issue on github |
Yeah, but we need to have some machinery to choose (if possible) which SSL certificate to use.
Basically, you may use route in two different ways:
The default from my point of view may be: |
should be Ok I got your point and I understand better your way, I fear that the '/' of /moodle can be forgotten and drives to errors however we can use only one property instead of two if we want to create the virtualhost. Maybe we can create a validator if the '/' is missing and if there is no '.' to add '/' at the beginning. can you have a go on the code ? |
Not now, but will do ASAP. Could you please point documentation on how to implement the validator, please? |
|
if (($route !~ m/./) && ($route !~ m/^//)) { or better I do love the oneliner $route = '/'.$route if (($route !~ m/./) && ($route !~ m/^//)); |
No description provided.