If anyone needs this i finally got it working any only pulled out half my hair in the process.
The official docker image only exposes port 80 over http so the changes need to be on the swag config, they should look like:
## Version 2022/10/28
...
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name nextcloud.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app nextcloud; # this is the name of your nextcloud app container
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_hide_header X-Frame-Options;
proxy_max_temp_file_size 2048m;
}
}
Also needed to restart the swag container for these to take effect (the swag dashboard reflects the changes but nginx needs a restart in order to work). You could probably issue the below command within swag to accomplish the same
nginx -c /config/nginx/nginx.conf -s reload