Subfolder with SSL and nginx reverse proxy

I strongly advise you to not run subfolder. You are signing up for a lot of suffering.