emersion / neutron

Self-hosted server for the ProtonMail client
MIT License
511 stars 41 forks source link

Unsure on config for "sub-slug-URI" #33

Open ozra opened 8 years ago

ozra commented 8 years ago

I've installed from deb, and I've reverse-proxied from nginx on mysite.tld/mailn - but when visiting the page, it tries to load js from mysite.tld/src/... (apparantly developer-mode?) instead of mysite.tld/mailn/src/.... I didn't figure out where to tell neutronmail that it's on a sub-slug (/mailn/), since it doesn't seem to investigate its path it self.

Also, the packager page (https://packager.io/gh/emersion/neutron) shows all builds as failed since 4 months back, so I don't know if I'm running the latest version (couldn't figure out how to get the neutronmail binary to tell me the version either)

emersion commented 8 years ago

I don't think the WebClient (https://github.com/ProtonMail/WebClient) supports being served from a custom path.

Yeah, packager builds fail and I don't know why...

ozra commented 8 years ago

Ok, I'll just put it on it's own domain. Would you recommend me to build it from source, or is the package "up to date enough"?

ozra commented 8 years ago

Hmm, I don't seem to be able to "sign up". I'm using my imap user and passwd. After the captcha, it XHR's and fails: (log output from neutronmail)

[Macaron] 2016-09-09 13:08:20: Started POST /api/users for 127.0.0.1
[Macaron] 2016-09-09 13:08:20: Completed /api/users 500 Internal Server Error in 19.180886ms

Any ideas?

ozra commented 8 years ago

Wait a minute, sorry: I added conf.json to "/etc/neutronmail", but I removed it again, because neutronmail refused to start because of:

/etc/neutronmail/conf.d/config.json: line 2: Memory:: command not found

That might have a lot to do with it. So what's up with that? (I've only changed the domain etc. and kept the rest of the example config as is)

emersion commented 8 years ago

You can specify the config file path with --config=/path/to/config.json.

ozra commented 8 years ago

There was no problem with the path. There is a problem with the contents: line 2: Memory:: command not found