Notifiarr / notifiarr

Client for Notifiarr.com
https://notifiarr.com
MIT License
494 stars 28 forks source link

ssl cert bug causing startup crash after save #746

Closed notifiarr-bot closed 2 months ago

notifiarr-bot commented 3 months ago

Alright, I've been pulling my hair out with this one all day. Here's the setup:

I am able to use the WebUI to change everything except to put in my SSL certs. Without these certs I can access the WebUI on localhost exactly as expected, however, the goal is to be able to access the notifiarr client through my personal domain, for which I need to enable SSL. To that end, when I put the path to the certs in the WebUI and save/restart the client, it completely crashes. Attempting to start it up again gives me the following error:

[ERROR] 2024/05/31 15:24:17 [gui 'googie_g15' requested] Copying Config (GUI request): decoding config from toml for copying (this is a bug!): toml: line 70: expected a top-level item to end with a newline, comment, or EOF, but got 'C' instead: toml: error: expected a top-level item to end with a newline, comment, or EOF, but got 'C' instead ` At line 70, column 15: 68 | ## If you set these, logs will be written to these files. 69 | ## If blank on windows or macOS, log file paths are chosen for you. 70 | log_file = '''C:\Program Files\notifiarr\logs\notifiarr.log'''`

I have found that manually creating a .conf file with the cert paths and all other info does allow me to reach the WebUI through my Apache proxy but I'm then unable to make any changes on the WebUI, including things that I could adjust before. Anytime I try to save anything I get the same error as above. This also means that the .conf file remains uncompressed with a plaintext password, which is certainly not ideal.

So, does anyone know how to fix this error and ensure that I can get my SSL certs put in while still being able to use the WebUI?

Origin user: googie_g15 Origin message: Discord Server Link Reporting user: twitchcaptain Reporting message: Discord Server Link