-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add a mechanism to set trusted domains on install #500
Conversation
hey thanks for your contribution. Unfortunately the files you edited aren't meant to be edited directly. They are auto generated from the |
ah, good to know :) I'll adjust next week, thanks for the pointer! |
b6d2906
to
e0e9dc9
Compare
@SnowMB done |
Thanks! There is a version bump in the nextcloud 14 image. @tilosp Can you have a look? |
14.0.3 is the currently released version. I don't know how updates are picked up here, manually or (semi-)automatically? |
A simple rebase onto master should fix this (You branched before 4d2dbd6) |
e0e9dc9
to
1f4ffe7
Compare
Check! |
NC_TRUSTED_DOMAIN_IDX=1 | ||
for DOMAIN in $NEXTCLOUD_TRUSTED_DOMAINS ; do | ||
DOMAIN=$(echo "$DOMAIN" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') | ||
run_as "php /var/www/html/occ config:system:set trusted_domains $NC_TRUSTED_DOMAIN_IDX --value=$DOMAIN" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break if you put special characters into this var. (like "
or $
)
But it shouldn't really matter because a valid domain name can't contain these characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for your contribution :) |
thank you for this contribution! |
my configuration does not work, could somebody help me? this is my docker-compose: services: app: volumes: and my db.env
I see the following lines in the terminal with a fresh install: the install script (https://github.com/nextcloud/docker/blob/424364e2e10a9d6e1a31e6659e2149aac1f1c772/14.0/apache/entrypoint.sh) does not go to: is mariadb not supported? |
Resolves #469
Optionally,
NEXTCLOUD_TRUSTED_DOMAINS
can be specified. After sucessfull install, occ is being used to set the provided domains names.for example: