sdassow / wiking

Golang based wiki engine with content in Markdown format, support for attachments, diagrams, git storage, and fulltext search
Other
2 stars 1 forks source link

Request: Option to disable rebind protection #13

Closed ocdtrekkie closed 4 years ago

ocdtrekkie commented 4 years ago

I tried setting up my Sandstorm package using your fork, and immediately hit the error message created here: https://github.com/sdassow/wiking/commit/9acf57c2c97aaa2e8096e18306204a271bd7096e

Unfortunately, I don't believe there's a viable hostname I can provide: Each time a given instance of an app is loaded in Sandstorm, it's hosted on an unguessable hostname, and the hostname is not available to the application in the sandbox. I was wondering whether or not this protection was something you would consider making possible to disable, in the scenario that the app lives inside a sandbox that is managing many security protections itself.

sdassow commented 4 years ago

It is now optional. With an empty hosts list the rebind protection is not enabled anymore.

ocdtrekkie commented 4 years ago

Is there a way to set an environment variable to be empty and it still be recognized by the app? I tried export WIKING_HOSTS=""