celenity/Phoenix
8
198
Fork
You've already forked Phoenix
19

[OTHER] About PHOENIX_OVERRIDES_CFG_FILE and how to confgure #297

Closed
opened 2026年05月26日 07:01:10 +02:00 by fossil535 · 5 comments

Please explain your inquiry.

I go through all the code commits just to understand how you approach configuring a browser to be more private as well as secure.

I came across this commit regarding PHOENIX_OVERRIDES_CFG_FILE which can be used to override Phoneix default configurations.
a546b10efc

But I am not sure how to configure it or make it work.

Can you please add a note to the documentation for the same?

### Please explain your inquiry. I go through all the code commits just to understand how you approach configuring a browser to be more private as well as secure. I came across this commit regarding PHOENIX_OVERRIDES_CFG_FILE which can be used to override Phoneix default configurations. https://codeberg.org/celenity/Phoenix/commit/a546b10efc2773dae1a406a0a40b343c01618e97 But I am not sure how to configure it or make it work. Can you please add a note to the documentation for the same?

@fossil535 wrote in #297 (comment):

I go through all the code commits just to understand how you approach configuring a browser to be more private as well as secure.

Nice to hear that! Appreciate having another set of eyes on things.

I came across this commit regarding PHOENIX_OVERRIDES_CFG_FILE which can be used to override Phoneix default configurations. a546b10efc

But I am not sure how to configure it or make it work.

Basically, it’s a mechanism to allow downstream projects utilizing Phoenix (ex. Dove, IronFox) to override the new Phoenix-specific (browser.phoenix.*) preferences. For it to work, it needs to be pointed to the full path of a .cfg file in the same format as the Phoenix configs themselves. For reference, you can see what this looks like with Dove’s phoenix-overrides.cfg file here and IronFox’s phoenix-overrides.cfg file here (The name of the file doesn’t matter - I just chose to use phoenix-overrides.cfg for both Dove and IronFox for consistency/clarity).

For overriding preferences, it’s preferable to use PHOENIX_EXTRA_CFG instead - the reason there’s the separate PHOENIX_OVERRIDES_CFG variable only for Phoenix-specific preferences is due to how early they have to be processed.

But, to clarify, both PHOENIX_EXTRA_CFG and PHOENIX_OVERRIDES_CFG are only parsed at build-time.

Can you please add a note to the documentation for the same?

Definitely!

@fossil535 wrote in https://codeberg.org/celenity/Phoenix/issues/297#issue-5336513: > I go through all the code commits just to understand how you approach configuring a browser to be more private as well as secure. Nice to hear that! Appreciate having another set of eyes on things. > I came across this commit regarding PHOENIX_OVERRIDES_CFG_FILE which can be used to override Phoneix default configurations. [`a546b10efc`](https://codeberg.org/celenity/Phoenix/commit/a546b10efc2773dae1a406a0a40b343c01618e97) > > But I am not sure how to configure it or make it work. Basically, it’s a mechanism to allow downstream projects utilizing Phoenix *(ex. Dove, IronFox)* to override the new [Phoenix-specific *(`browser.phoenix.*`)* preferences](https://codeberg.org/celenity/Phoenix/src/branch/dev/docs/preferences.md). For it to work, it needs to be pointed to the full path of a `.cfg` file in the same format as the Phoenix configs themselves. For reference, you can see what this looks like with [Dove’s `phoenix-overrides.cfg` file here](https://codeberg.org/celenity/Dove/src/branch/dev/phoenix-overrides.cfg) and [IronFox’s `phoenix-overrides.cfg` file here](https://codeberg.org/ironfox-oss/IronFox/src/branch/dev/templates/phoenix/phoenix-overrides.cfg) *(The name of the file doesn’t matter - I just chose to use `phoenix-overrides.cfg` for both Dove and IronFox for consistency/clarity)*. For overriding preferences, it’s preferable to use [`PHOENIX_EXTRA_CFG`](https://codeberg.org/celenity/Phoenix/src/commit/ea0ce4dfb0908b2b4bf7002cde1638b40a9c5e87/scripts/env_common.sh#L559) instead - the reason there’s the separate `PHOENIX_OVERRIDES_CFG` variable only for Phoenix-specific preferences is due to how early they have to be processed. But, to clarify, both `PHOENIX_EXTRA_CFG` and `PHOENIX_OVERRIDES_CFG` are only parsed at build-time. > Can you please add a note to the documentation for the same? Definitely!

Got it.

I was hoping that instead of using a user.js, I could use a pref file to override some settings as required. For example, maintain additional parameters for privacy.query_stripping.strip_list as I and when I find them when navigating the Internet. Would make my life easier to edit just the extended pref instead of editing the core Phoenix pref file itself.

Got it. I was hoping that instead of using a user.js, I could use a pref file to override some settings as required. For example, maintain additional parameters for privacy.query_stripping.strip_list as I and when I find them when navigating the Internet. Would make my life easier to edit just the extended pref instead of editing the core Phoenix pref file itself.

@fossil535 wrote in #297 (comment):

I was hoping that instead of using a user.js, I could use a pref file to override some settings as required.

Do you mean a way to override preferences for all profiles?

For example, maintain additional parameters for privacy.query_stripping.strip_list as I and when I find them when navigating the Internet. Would make my life easier to edit just the extended pref instead of editing the core Phoenix pref file itself.

I’m curious to hear your thoughts on something: do you think it’d help if we add a Phoenix-specific preference for adding custom/user-specified entries to the query stripping list? I could see that being beneficial mainly because it’d allow you to add your own params without overriding our default ones (unless desired - we could add a separate preference to enable/disable our default parameters as well) - similar to how we now handle FPP overrides.

I’m not sure if that would help with this specific issue though, but something I’ve been thinking about anyways.

(Btw, please do be sure to report the parameters/potential additions you find - I see you already filed an issue for some which I appreciate, haven’t had a chance to look at yet but will when I can).

@fossil535 wrote in https://codeberg.org/celenity/Phoenix/issues/297#issuecomment-15955106: > I was hoping that instead of using a user.js, I could use a pref file to override some settings as required. Do you mean a way to override preferences for all profiles? > For example, maintain additional parameters for privacy.query_stripping.strip_list as I and when I find them when navigating the Internet. Would make my life easier to edit just the extended pref instead of editing the core Phoenix pref file itself. I’m curious to hear your thoughts on something: do you think it’d help if we add a Phoenix-specific preference for adding custom/user-specified entries to the query stripping list? I could see that being beneficial mainly because it’d allow you to add your own params without overriding our default ones *(unless desired - we could add a separate preference to enable/disable our default parameters as well)* - similar to how we now handle FPP overrides. I’m not sure if that would help with this specific issue though, but something I’ve been thinking about anyways. *(Btw, please do be sure to report the parameters/potential additions you find - I see you already filed an issue for some which I appreciate, haven’t had a chance to look at yet but will when I can)*.

@celenity wrote in #297 (comment):

I’m curious to hear your thoughts on something: do you think it’d help if we add a Phoenix-specific preference for adding custom/user-specified entries to the query stripping list? I could see that being beneficial mainly because it’d allow you to add your own params without overriding our default ones (unless desired - we could add a separate preference to enable/disable our default parameters as well) - similar to how we now handle FPP overrides.

FYI: You can see how I decided to implement this here.

@celenity wrote in https://codeberg.org/celenity/Phoenix/issues/297#issuecomment-15968165: > I’m curious to hear your thoughts on something: do you think it’d help if we add a Phoenix-specific preference for adding custom/user-specified entries to the query stripping list? I could see that being beneficial mainly because it’d allow you to add your own params without overriding our default ones _(unless desired - we could add a separate preference to enable/disable our default parameters as well)_ - similar to how we now handle FPP overrides. FYI: You can see [how I decided to implement this here](https://codeberg.org/celenity/Phoenix/commit/1c97778909017d4085e4cd1f8fc650f6290c55dc).

Thank you for this.

Give me sometime to understand and then share the config that I would like to extend and test on the Internet to check for any breakage before sharing here.

Thank you for this. Give me sometime to understand and then share the config that I would like to extend and test on the Internet to check for any breakage before sharing here.
Sign in to join this conversation.
No Branch/Tag specified
dev
pages
2026年07月08日.1
2026年06月10日.1
2026年05月21日.2
2026年05月21日.1
2026年04月27日.1
2026年03月31日.1
2026年03月30日.1
2026年02月23日.1
2026年02月16日.1
2026年01月21日.1
2025年12月23日.1
2025年11月27日.1
2025年11月07日.1
2025年10月26日.1
2025年10月12日.1
2025年10月03日.1
2025年09月07日.1
2025年08月06日.1
2025年07月30日.1
2025年07月11日.1
2025年06月24日.1
2025年06月12日.1
2025年06月10日.1
2025年06月06日.1
2025年06月02日.2
2025年06月02日.1
2025年05月11日.1
2025年04月27日.1
2025年04月15日.1
2025年04月11日.1
2025年04月02日.1
2025年03月25日.1
2025年03月20日.1
2025年03月12日.1
2025年03月05日.1
2025年02月28日.1
2025年02月21日.1
2024年02月18日.1
2025年02月14日.1
2025年02月13日.1
2025年02月01日.1
2025年01月30日.1
2025年01月27日.1
2025年01月24日.1
2025年01月22日.2
2025年01月22日.1
2025年01月20日.2
2025年01月20日.1
2025年01月19日.1
2025年01月14日.1
2025年01月13日.1
2025年01月12日.2
2025年01月12日.1
2025年01月06日.1
05January2025v1
20240103.2
20250103.1
20241229-1
20241225-1
20241216-1
20241211-1
20241204-1
20241203-1
31November2024v1
20241103-1
20240924-1
20240914-1
20240907-1
20240902-1
20240831-1
20240825-1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
celenity/Phoenix#297
Reference in a new issue
celenity/Phoenix
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?