-
Notifications
You must be signed in to change notification settings - Fork 11
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
Stop injecting python code in the configuration #52
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ User apache | |
Group apache | ||
Listen {{ .APIPublicPort }} | ||
|
||
|
||
AccessFileName .htaccess | ||
<FilesMatch "^\.ht"> | ||
Require all denied | ||
|
@@ -32,6 +33,7 @@ AccessFileName .htaccess | |
LogLevel debug | ||
EnableSendfile On | ||
|
||
TypesConfig /etc/mime.types | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so previously we were getting mime.conf becuase of the Include on the next line 37... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exactly, that's what other operators do, e.g nova https://github.com/openstack-k8s-operators/nova-operator/blob/0933c978bad435a91ec3fff1121f762a93e9bba9/templates/novaapi/config/httpd.conf#L13 or keystone https://github.com/openstack-k8s-operators/keystone-operator/blob/ced167413cf979dfdbaec16468115894af26384c/templates/keystoneapi/config/httpd.conf#L13 |
||
Include "/etc/httpd/conf.modules.d/*.conf" | ||
|
||
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it's unrelated with removing the main file from here. There are another couple of issues related to httpd config:
https://github.com/openstack-k8s-operators/nova-operator/blob/main/templates/novaapi/config/httpd.conf#L25-L30
and
https://github.com/openstack-k8s-operators/nova-operator/blob/main/templates/novaapi/config/httpd.conf#L53-L59
We can fix it in follow-up if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks that's a good point about the logs, I have another PR prepared after this one with more fixes for the config files, I can add it to that one. Simlarly, I have the ssl file added in a different patch where I' working to add more TLS support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good callout on the logging ya we should do that but i agree that can be in a separate pr.