Redirect URL with Nginx in Digital Ocean

The optimal solution here would be to update the migration script so that the permalink redirects are created for you.

Don’t configure nginx directly, those changes will be destroyed each time the container is rebuilt for an upgrade.

Instead as @pfaffman says edit the app.yml to modify the nginx configuration.