Seafile 12 docker reverse-proxy

Main server NGINX <10.0.0.1=wireguard=10.0.0.11> Local server with docker seafile 12.

According to this instruction:
https://manual.seafile.com/12.0/setup/use_other_reverse_proxy/
I turned it off Caddy.

In Main server nginx config:

server {
        server_name my_domain_name;
        
        location / {
			proxy_pass http://10.0.0.11:80;
			proxy_read_timeout 310s;
			proxy_set_header Host $host;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_set_header Connection "";
			proxy_http_version 1.1;

			client_max_body_size 0;
		}

As a result, I can log in via the web interface and upload files. But I can’t delete files. I can’t create users and I can’t create a wiki.
If I go directly to the local server via 127.0.0.1, everything works fine.

I reinstalled everything again. Now I get an error when I try to log in to the web interface.
Access Error (403)
CSRF validation error. Request rejected.

==> /opt/seafile-data/seafile/logs/seahub.log <==
 [WARNING] django.security.csrf:241 log_response Forbidden (Origin checking failed - https://mydomain.ru does not match any trusted origins.): /accounts/login/

locally 127.0.0.1 everything works fine

Try adding the following line to seahub_settings.py

CSRF_TRUSTED_ORIGINS = ["https://mydomain.ru"]

Yes, it works.