Skip to content

[artifactory] allow custom nginx config files and snippets#2290

Open
rufdoSICKAG wants to merge 1 commit into
jfrog:masterfrom
rufdoSICKAG:custom-nginx-config
Open

[artifactory] allow custom nginx config files and snippets#2290
rufdoSICKAG wants to merge 1 commit into
jfrog:masterfrom
rufdoSICKAG:custom-nginx-config

Conversation

@rufdoSICKAG

Copy link
Copy Markdown

This allows to add nginx config files and snippets to customize nginx behavior. An example use case would be, adding a config file containing log_formats and refering to one of those log_formats in a snippet, setting a custom access_log.

PR Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • CHANGELOG.md updated
  • Variables and other changes are documented in the README.md
  • Title of the PR starts with chart name (e.g. [artifactory])

What this PR does / why we need it:

This allows to add nginx config files and snippets to customize nginx behavior. An example use case would be, adding a config file containing log_formats and refering to one of those log_formats in a snippet, setting a custom access_log.

@rufdoSICKAG
rufdoSICKAG force-pushed the custom-nginx-config branch from 5d41d95 to 7e37365 Compare May 4, 2026 11:40
@chukka

chukka commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

@rufdoSICKAG Thanks for the PR , Did you get chance to test the PR with proposed solution ? Can you pls share a sample values , so that a test can be added (from our side for this implementation)

}
}
{{- if .Values.nginx.customServerSnippet }}
{{ .Values.nginx.customServerSnippet }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For consistency and to allow templating inside the snippet, use {{ tpl .Values.nginx.customServerSnippet . }} ?

Comment thread stable/artifactory-ha/values.yaml Outdated

customConfFile: ""
# custom.conf: |
# log_format ningxartifactory '$proxy_protocol_addr - $remote_user [$time_local] "$request"';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

typo - nginxartifactory

Comment thread stable/artifactory-ha/values.yaml Outdated
# custom.conf: |
# log_format ningxartifactory '$proxy_protocol_addr - $remote_user [$time_local] "$request"';
customServerSnippet: ""
# access_log /dev/stdout ningxartifactory;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

typo - nginxartifactory

{{- end }}
{{- if .Values.nginx.customConfFile }}
{{ tpl .Values.nginx.customConfFile . | indent 2 }}
{{ end }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

{{ end }} should be {{- end }}

{{- end }}
{{- if .Values.nginx.customConfFile }}
{{ tpl .Values.nginx.customConfFile . | indent 2 }}
{{ end }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

{{ end }} should be {{- end }}

This allows to add nginx config files and snippets to customize nginx behavior.
An example use case would be, adding a config file containing log_formats
and refering to one of those log_formats in a snippet setting a custom access_log.
@rufdoSICKAG
rufdoSICKAG force-pushed the custom-nginx-config branch from 7e37365 to 6ab830b Compare July 24, 2026 12:18
@rufdoSICKAG

Copy link
Copy Markdown
Author

I made the suggested changes and rebased the branch to the current master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants