You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/exegol-image/my-resources.rst
+82-4Lines changed: 82 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,11 +101,89 @@ To automatically:
101
101
102
102
A system exists to easily personalise firefox in any new exegol container.
103
103
104
-
The file ``/opt/my-resources/setup/firefox/policy.json.template`` can be modified to apply a Firefox policy (https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson), all available directives can be found here: https://mozilla.github.io/policy-templates/.
104
+
The file ``/usr/lib/firefox-esr/distribution/policies.json`` can be used as a template in order to create your own Firefox policy. Your policy can then be copied to the location ``/opt/my-resources/setup/firefox/policies.json`` to apply it in the next container deployment (https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson), all available directives can be found here: https://mozilla.github.io/policy-templates/.
105
105
106
-
Once the modifications are done, the template file can be renamed to ``/opt/my-resources/setup/firefox/policy.json`` and the policy will be applied.
106
+
.. hint::
107
+
Your custom policy will overwrite the default policy created by Exegol.
108
+
109
+
The default policy applied by Exegol will do the following actions:
`Disable a few Firefox features such as the telemetry`
158
+
159
+
.. code-block:: json
160
+
161
+
{
162
+
"policies": {
163
+
"DisableTelemetry": true,
164
+
"DisplayBookmarksToolbar": "always",
165
+
"UserMessaging": {
166
+
"WhatsNew": false,
167
+
"ExtensionRecommendations": false,
168
+
"FeatureRecommendations": false,
169
+
"UrlbarInterventions": false,
170
+
"SkipOnboarding": true,
171
+
"MoreFromMozilla": false
172
+
}
173
+
}
174
+
175
+
`Apply the CA of Burpsuite`
176
+
177
+
.. code-block:: json
178
+
179
+
{
180
+
"policies": {
181
+
"Certificates": {
182
+
"Install": ["/opt/tools/firefox/cacert.der"]
183
+
}
184
+
}
107
185
108
-
In order to install a specific addon, you can go to the Firefox addon webpage, and search for the addon GUID in the page HTML source code by searching for the JSON field ``"guid":``, for example for the Dark Reader addon, the GUID is ``addon@darkreader.org``, you can then add the extension in the JSON file:
186
+
In order to install a specific addon in your own policy, you can go to the Firefox addon webpage, and search for the addon GUID in the page HTML source code by searching for the JSON field ``"guid":``, for example for the Dark Reader addon, the GUID is ``addon@darkreader.org``, you can then add the extension in your policy file:
109
187
110
188
.. code-block:: json
111
189
@@ -142,7 +220,7 @@ or you can add a new folder:
142
220
:code:`firefox` (addons, CA) (deprecated)
143
221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144
222
.. warning::
145
-
This covers the previous method for personalizing Firefox; the current approach utilizes :ref:`policy <`firefox` (policy)>`.
223
+
This covers the previous method for personalizing Firefox; the current approach utilizes :ref:`policy <\`firefox\` (policy)>`.
146
224
147
225
.. seealso::
148
226
Available from version ``3.0.2`` to ``3.1.5`` of any exegol image.
0 commit comments