Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy does not work on Ubuntu 22.x, but works fine on 20.x with same config #1346

Open
KoenLav opened this issue Jul 6, 2023 · 1 comment

Comments

@KoenLav
Copy link

KoenLav commented Jul 6, 2023

Version (mup --version): 1.5.5 - 15.10

Config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../../../",
    "servers": {
      "one": {}
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb+srv://user:pass@subdomain.subdomain.host.com/production",
      "NODE_OPTIONS": "--max-old-space-size=3333",
      "VIRTUAL_HOST": "subdomain.host.com",
      "HTTPS_METHOD": "noredirect",
      "LETSENCRYPT_HOST": "subdomain.host.com",
      "LETSENCRYPT_EMAIL": "email@domain.com",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "buildOptions": {
      "serverOnly": true,
      "debug": false,
      "buildLocation": "/tmp/mup-build"
    },
    "docker": {
      "image": "zodern/meteor",
      "prepareBundle": true,
      "useBuildKit": true,
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000
    },
    "deployCheckWaitTime": 300,
    "type": "meteor"
  },
  "proxy": {
    "domains": "subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "email@domain.com"
    }
  }
}

Result
Visiting the domain, after deploying two apps on the same server, results in a 403 - Forbidden error.

Also the nginx proxy keeps restarting, because some of it's "vhost" configuration file is corrupt:

nginx.1 | 2023/07/06 10:02:56 [emerg] 28#28: no servers are inside upstream in /etc/nginx/conf.d/default.conf:65

@KoenLav
Copy link
Author

KoenLav commented Jul 6, 2023

It also seems related to zodern/nginx-proxy:1.0.0 vs zodern/nginx-proxy:1.1.0

Reproduction:

  • Create a VM with Ubuntu 22.x;
  • Deploy TWO apps with a proxy config (different (sub)domain);
  • NGINX will keep on restarting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant