# Set hudson.model.DirectoryBrowserSupport.CSP as default

**URL:** <https://community.jenkins.io/t/set-hudson-model-directorybrowsersupport-csp-as-default/29530>\
**Category:** Ask a question\
**Created:** [April 8, 2025, 7:12am UTC](https://community.jenkins.io/t/set-hudson-model-directorybrowsersupport-csp-as-default/29530 "2025-04-08T07:12:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohampairk](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sohampairk](https://community.jenkins.io/u/sohampairk)\
**Post date:** [April 8, 2025, 7:12am UTC](https://community.jenkins.io/t/set-hudson-model-directorybrowsersupport-csp-as-default/29530/1 "2025-04-08T07:12:49Z")

</div>

I want to configure the `hudson.model.DirectoryBrowserSupport.CSP` property so that it’s set by default every time Jenkins starts. I tried doing this by adding the `JAVA_ARGS` entry in the `/etc/default/jenkins` file, but it doesn’t seem to be working.

JAVA\_ARGS=“-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP="default-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’; img-src data:;"”

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [April 8, 2025, 7:48pm UTC](https://community.jenkins.io/t/set-hudson-model-directorybrowsersupport-csp-as-default/29530/2 "2025-04-08T19:48:48Z")

</div>

> [@sohampairk](#):
>
> tried doing this by adding the `JAVA_ARGS` entry in the `/etc/default/jenkins` file, but it doesn’t seem to be working.

When Jenkins is installed from the apt, yum, or dnf Linux package managers, it does not use `/etc/default/jenkins`. Jenkins switched to systemd in March 2022 as announced in the [changelog](https://www.jenkins.io/changelog/2.332.1/) and as documented in [“Managing Systemd Services”](https://www.jenkins.io/doc/book/system-administration/systemd-services/)

Refer to those instructions that will guide you to configure command line arguments.
