Failed to load resource: the server responded with a status of 502 (Bad Gateway)

@mgtrfelipeurrego
You tell Metabase to run on port 3100 (DMB_JETTY_PORT=3100), but your Nginx config is referencing it at port 3000 (proxy_pass ...)

  1. First setup Metabase so it's only accessible on localhost, meaning you should not be able to access it via example.com:3000
  2. Then setup your Nginx config, so there are no conflict warnings, meaning you should only have a single server-section per server_name+listen.
  3. Then make a proxy_pass http://localhost:3000;
    As described in the documentation:
    https://www.metabase.com/docs/latest/operations-guide/running-metabase-on-debian.html#ensure-nginx-is-setup-to-proxy-requests-to-metabase
    Or a slightly more complete configuration as shown here: MySQL SSL connection
  4. After Metabase is available on https://example.com, then make sure to adjust Site URL in Metabase > Admin > Settings > General, so it matches how Metabase is being accessed.