Skip to content
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

expand ability to add new trusted domains via env var #226

Closed
wants to merge 3 commits into from

Conversation

ckocyigit
Copy link

@ckocyigit ckocyigit commented Dec 8, 2021

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Adding another container init step to do this on startup.

Benefits of this PR and context:

I'am using this docker image on Unraid behind a Traefik Proxy. Proxing Nextcloud will be something which is done by many users I would guess and I thought a clean solution with a optional and additional environment variable to add trusted domains would be nice for everybody. Otherwise you would have to somehow find a IMO dirty way to interact with a config file which is not exposed by default. This could also be in an ephemeral way which also annoying.

How Has This Been Tested?

I've tested this small script within a linux container and the occ command within the linuxserver container

Source / References:

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

@project-bot project-bot bot added this to PRs & in progress issues in Issue & PR Tracker Dec 8, 2021
else
for domain in $TRUSTED_DOMAINS
do
occ config:system:set trusted_domains $i --value=$domain
Copy link
Author

@ckocyigit ckocyigit Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<error line="12" column="58" severity="info" message="Double quote to prevent globbing and word splitting." source="ShellCheck.SC2086"/>

occ config:system:set trusted_domains "$i" --value="$domain"

<error line="12" column="58" severity="info" message="Double quote to prevent globbing and word splitting." source="ShellCheck.SC2086"/>
@github-actions
Copy link

github-actions bot commented Jan 8, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@drizuid
Copy link
Member

drizuid commented Mar 26, 2023

IMO dirty way to interact with a config file which is not exposed by default. the config file is in the config directory, intended for users to modify as they need to. In fact, all swag users already modify it for reverse proxying. I see no reason to add this, it would just open the door for further requests for the myriad of other items that go in the config file.

@drizuid drizuid closed this Mar 26, 2023
Issue & PR Tracker automation moved this from PRs & in progress issues to Done Mar 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants