-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Running behind proxy? #105
Comments
Hi @ieugen, Alf.io supports the X-Forwarded-proto for ssl termination. This header is frequently used by PaaS providers (see website for the guides). We would strongly suggest to use docker, as documented in the readme. I'm closing this because it's not really an issue. Next time please write to the mailing list. Celestino |
Hi, Thank you clearing things. I managed to deploy it [1] but I did some changes to the code and build system [2]. I know people use docker but that doesn't mean I have to do too. I don't like docker. It adds another layer that I don't need so please don't force me (the user) to use it. I deploy using systemd service and I've changed the build to produce a binary distribution that does start the embedded tomcat. I have production experience and would like to contribute some stuff. Some of them are in the branch but not quite ready for merging. [1] https://bileterie.ro/ |
Hi @ieugen, Docker is not (only) about buzzwords, it is a good and effective way to encapsulate services. For instance, using our docker image people simply can't access the 8080 port directly, because that port is not bound on the public ip.
I actually managed to access your running system [1] using HTTP (I can share details via private e-mail if needed), so I am still convinced that removing the RedirectToHttpsFilter, which is an important piece of the security infrastructure, is not a good idea.
we'll support that in the next releases (1.8 or 1.9), when we'll update spring-boot version to 1.3 (see https://github.com/spring-projects/spring-boot/wiki/spring-boot-1.3-release-notes#fully-executable-jars-and-service-support). Thanks for pointing it out.
That's great, every contribution is welcome! @mg-1999 is working on a step-by-step guide "how to deploy alf.io on Digital Ocean", maybe you could add a "let's encrypt" section there. That would be really appreciated. Thank you! |
Hi, I'm not denying docker is useful or good. I just don't want to use it when I don't have to. It's another layer. I think it's best practice for the app to bind to localhost and provide an easy way to change that (I think @mg-1999: let me know how I can contribute. [`1] http://12factor.net/ |
Search is your friend. As already said, pull requests for the documentation are welcome.
|
Thanks. It's much better to keep the configuration and all the data the application produces outside the application directory. This way you can upgrade very easily. You just unpack the latest version and point it to the configuration and data directory and start the new app. My usual setup (sysadmin approved) is like this:
Having this setup, upgrading is easy and rolling back is possible. Upgrade:
The only downtime you have depends on how fast your application starts. Backing up is easy: just copy conf and data and maybe logs. |
I just run Alf.io in a |
@mg-1999 if you bind to localhost there is no need for firewalling any port since the app is not available from public internet except through proxy. |
Hello,
How can I run the application behind an http proxy like apache or nginx?
My setup uses apache to handle SSL and so far Alf seems to ignore all the normal HTTP headers like x-forwarded-for or x-forwarded-proto for working in such a scenario.
Thank you,
The text was updated successfully, but these errors were encountered: