#production mode but without https

1 messages Β· Page 1 of 1 (latest)

sage salmon
#

Our hosting environment is hosting our Umbraco without https. The https is handled by K8S.
Is it possible to run Umbraco in "Production" mode but with UseHttps=false?
If I try I get a message that says Umbraco can only run in Production mode when UseHttps is true.

silent cliff
#

It's not possible, Production mode is our recommendation and it is not designed for K8S hosting (or other kinds of reverse proxy hosting where you can't run on https).

sage salmon
#

Hmm, what's wrong K8S hosting Umbraco?
Is it only the Production that would have issues?
Right now we have now issues at all running Umbraco in out K8S setup. It runs perfect and fast.

neat maple
#

Maybe tou can disable the runtime check for https. You can write your own checks and add them with a composition, so it would be a good bet that you could also remove runtime checks.

silent cliff
#

Hmm, what's wrong K8S hosting Umbraco?

Sorry, absolutely nothing wrong with that! We don't "support" it directly, as in we have no documentation and expertise in it. I just meant: the feature Production Mode was not designed for K8S hosting. πŸ™‚

sage salmon
sage salmon
silent cliff
#

I have absolutely no experience running Umbraco in a setup like that, I think you might be the first pioneer.. so.. no idea! πŸ˜…

#

no real loadbalancing

just remember that if 2 or more instances of an Umbraco backoffice connect to the same database then you are by definition load balancing

neat maple
#

I think you should see the production mode as a way to force best practices. It's mostly a collection of checks at startup which cause Umbraco to fail to start if one of the checks fail. Like I said, you can also write checks yourself. So in your case, I guess the best practice isn't applicable, but it's not like Umbraco doesn't like your situation πŸ˜› Maybe it should have been easier to disable certain checks, maybe there needs to be a flag that says: I'm running behind a firewall, skip some checks. But you have the tools to remove checks if required. And tbh, in 98% of the cases it's probably better to have the 'usehttps' setting enabled and for the other few cases you can disbled them πŸ™‚

silent cliff
#

you can see it in the umbracoServer table if more than one are active (I believe)

silent cliff
sage salmon
#

Ahh. So "Mode": "Production" has no effect on how Umbraco runs?
It's all the other settings like for example "ModelsMode", "UseInMemoryCache". That is important.

sage salmon
neat maple
silent cliff
#

Production mode itself is just checks that make sure that you deploy with the correct settings. Those settings indeed change how Umbraco works, Production mode just checks that they're all set to best practice and does nothing else.

neat maple
silent cliff
neat maple
#

To be fair, it's the only thing I'm not sure about if it's just checking a setting or actively doing something by itself.

silent cliff
sage salmon
#

I can confirm that when in Production mode. It is not possible to change templates.

There is no error message or notification when trying to save a template.
The changes just disappear from the Umbraco Template editor.

Maybe the editor should be in read-only mode and/or the [Save] button should be disabled

neat maple
sage salmon