-
Notifications
You must be signed in to change notification settings - Fork 51
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
allow puma/systemd deployment #1883
Conversation
I guess something is incompatible with systemd 5.x 😿 |
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.
Looks good.
For unix sockets: we did find it was needed to set the hostname: https://github.com/theforeman/puppet-foreman/blob/af5dbe295525aa375c1ecc15225a40e95ef36053/manifests/config/apache.pp#L132
That part is what it supposedly connected to. https://stackoverflow.com/questions/51243332/apache-proxy-pass-to-unix-domain-socket/73741715#73741715 uses %{HTTP_HOST}
which may actually be better than what we do.
So changing the proxy_pass
url to `unix:///path/to/socket|http://
$apache_backend_config = { | ||
'proxy_preserve_host' => true, | ||
'proxy_add_headers' => true, | ||
'request_headers' => ['set X_FORWARDED_PROTO "https"'], |
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.
In Foreman we also unset SSL client cert parameters. Is that not needed here because Redmine ignores those?
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.
that was my assumption, nothing uses client auth here, so no need to unset.
d218598
to
5672c3f
Compare
Two TODOs for the future (will become issues in this repo once this PR is merged):
|
There's this context:
So would using # touch /var/run/apache.redmine.sock
# ls -lZ /var/run/apache.redmine.sock
-rw-r--r--. 1 root root unconfined_u:object_r:var_run_t:s0 0 Sep 5 12:41 /var/run/apache.redmine.sock |
Too damn smart this thing is. The socket is owned correctly:
But the service is running as
|
I think that's what
The question is then: which domain would make sense. |
Yeah, and this is something I'd prefer to think about another day ;) |
I'd be good with an issue that summarizes the information about using a unix socket instead of TCP. |
No description provided.