YOURLS Docker Nginx config issues

I’m running YOURLS in a docker container on an unRAID server. I’m trying to access YOURLS via a LetsEncrypt/Nginx reverse proxy, but can’t seem to figure out the correct settings.

I tried a modified version of the Nginx settings from the official YOURLS docs, but they didn’t work, so I tried these settings:

# Yourls
server {
    listen 80;
    server_name yourls.mydomain.tld;
    return 301 https://$server_name$request_uri;
}
	
server {
    listen 443 ssl http2;
    server_name yourls.mydomain.tld;
	
    # all ssl related config moved to ssl.conf
    include /config/nginx/ssl.conf;

    location / {
        try_files $uri $uri/ /yourls-loader.php$is_args$args @proxy;
        }

    location @proxy {
        proxy_pass http://192.168.1.107:8088/;
        include /config/nginx/proxy.conf;
        }

    location ~ \.php$ {
	    fastcgi_split_path_info ^(.+\.php)(/.+)$;
	    fastcgi_pass 127.0.0.1:9000;
	    fastcgi_index index.php;
	    include /etc/nginx/fastcgi_params;
    }
}

But then I get this error:
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /config/nginx/site-confs/default:352

Any ideas?

Thanks for opening this thread @xthursdayx!

The error seems relative to the proxy_pass directive.
Are you sure that it follows the documentation?