Ssowat persistent config

Hardware: VPS bought online
YunoHost version: 11.2.9.1
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version:

I have been trying to add a custom session_timeout to /etc/ssowat/config.json.persistent but I’m getting NGINX errors after doing so

My persistent file looks as follows

{
‘session_timeout’ = ‘432000’,
}

Afterwards I restart nginx server and I get then fix error web page. Am I not formatting it properly?

can you try with standard quotes?
like this:

{
'session_timeout' = '432000',
}

Same outcome showing error 500 :frowning:

This should be /etc/ssowat/conf.json.persistent

Can you also try removing the ending comma?

yes sorry, I have been editing conf.json.persistent this whole time. I just tried again without the comma and it failed again. I did notice that when the comma is removed and rebuilding the ssowat it gave me some error details.

Error: Corrupted YAML read from /etc/ssowat/conf.json.persistent (reason: while parsing a flow mapping
  in "<unicode string>", line 1, column 1:
    {
    ^
expected ',' or '}', but got '<scalar>'
  in "<unicode string>", line 2, column 19:
    'session_timeout' = '432000'
                      ^)

can you show to us your whole /etc/ssowat/conf.json.persistent please?
you can redact any non relevant info, but don’t remove any line or word (just replace a word by another word)
it’s to verify the glogal syntax

It’s currently empty. I only have been trying to add the one entry

{}

That’s what’s there now

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.