Increasing the size of upload file in Standard Notes

My YunoHost server

Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / …
YunoHost version: 11.1.3 testing
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
If your request is related to an app, specify its name and version: app v1.0~ynh1

Description of my issue

Hello

If I try to upload a file larger than 1meg into Standard Notes I get an error on all platforms of the Standard Notes apps.

So it’s a server config issue. Can anyone help me please to fix this? I’m by no means an expert, I can use ssh and nano so I’m not too frightened, but the instructions need to be as clear as possible for I am a bit of a thicky!!!

I have seen this somewhere else but for the life of me I cant remember where.

Dj

in Standard Notes NGINX config (/etc/nginx/config.d/standard_notes_domain.tld.d/snweb.conf), you can add (for 50M)

client_max_body_size 50M;

hello @ericg thanks very much for your reply, I do appreciate it. Today I had a look at this file and did the following changes:

sub_path_only rewrite ^/$ / permanent;
location / {
  proxy_pass http://127.0.0.1:3002/;
  proxy_http_version 1.1;
  proxy_set_header Host $http_host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection $connection_upgrade;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_buffering off;
}

location = / {
  default_type text/plain;
  return 200 "This is where Standard Notes - Syncing Server is installed.";
}

location /files/ {
  proxy_pass http://127.0.0.1:3005/;
  proxy_http_version 1.1;
  proxy_set_header Host $http_host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection $connection_upgrade;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_buffering off;
  client_max_body_size 100M;
}

Have I put the

client_max_body_size 100M;

in the right place?

Many thanks

dj

@ericg Just asking. Would you know why the Listed connection wont work. If I click “Create New Author” nothing happens. The button greys out, says its trying to Create the account but then just times out?

Thank you

dj

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