Hey!
I am following up spaceinvader tutorial on youtube to set up nextcloud with onlyoffice using swag, it's been quite easy so far but I am having problems with swag and the proxy configuration file for onlyoffice, every time I put up the config file for the proxy for onlyoffice I loose access to everything configured through swag, but as soon as I disable the proxy config file I get access again, meaning that I have a problem in the proxy file for onlyoffice.
I took as example the proxy file that spaceinvader has on his youtube video and started tweaking from there, but obviously there must be a problem because neither the basic config file nor the tweaking I've done works so far
Would you be able to share your proxy config file for onlyoffice?
This is how I have configured mine (removed sensitive info):
# only office doc server
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name documentserver.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.1.108;
set $upstream_port 4430;
set $upstream_proto https;
set $upstream_docs OnlyOfficeDocumentServer;
proxy_pass $upstream_proto://$upstream_docs:$upstream_port;
proxy_redirect off;
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 X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
}
}