-
Notifications
You must be signed in to change notification settings - Fork 56
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
Apache Reverse Proxy #1442
Comments
Thank you @Mq89 - so is this config a working example? It could be added to the docs similar to the nginx one, right? If you like, you could add it there, branch off of |
Yes, it is a working example. I can provide an update for the docs, but it will take me a couple of days. |
Thank you! And there is no rush at all! (if I find some time before, I can also add it, let's see 😄) |
I know this issue is getting older but I am currently setting up an instance of sharry using an apache reverse proxy similar to this and I am confused about the some of the directives in this example.
I've still got a lot to learn about apache. I may be way off base here but I would really appreciate hearing from others. Here's a fuller example of the apache config I am building for sharry in case it helps anyone. <VirtualHost *:443>
ServerName sharry.company.com
ServerAlias sharry
SSLEngine on
SSLCertificateFile /etc/ssl/STAR_company_com.crt
SSLCertificateKeyFile /etc/ssl/STAR_company_com.key
SSLProtocol -all +TLSv1.2 +TLSv1.3
ProxyPass / http://localhost:9090/
ProxyPassReverse / http://localhost:9090/
ProxyRequests off
LogLevel warn
CustomLog /var/log/sharry/secure_access.log combined
ErrorLog /var/log/sharry/secure_error.log
</VirtualHost> |
Hi @luther84, thank you for your reply. Part of the reason why it takes me so long to provide a PR to update the docs is that I want to validate which configuration options are really necessary to run sharry behind an apache reverse proxy. I did not find the time to do it yet. From your comment, I understand that the configuration you posted works as a reverse proxy. Correct? I still want to confirm the necessary working configuration and provide updated documentation. |
No worries, I really appreciate you posting in the first place. It gave me something to compare my research to and made me look up a bunch of directives in the apache docs. You helped my learning experience and hopefully our conversation can help other people find the right config for them. I still have lots to learn and always welcome helpful input.
Yes, a version of this config with filepaths and domain names changed to suit your environment will proxy traffic back to a sharry instance running on localhost:9090. Possibly even securely.
I don't have the time/energy to figure out a pull request for the docs but popping in here occasionally to talk about configs works for me. My current struggle is deciding if my usage of apache's basic auth mechanism (backed by ldap in this case) with sharry's proxy auth method is secure. It looks like I can get the behavior I want with something like
Changing to |
As I invested quite some time to figure this out, I wanted to share the Apache configuration I use for the reverse proxy. The offical docs provide the Nginx config, but I am kind of stuck with apache on that particular machine.
example.com
.The text was updated successfully, but these errors were encountered: