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

Running neko with caddy - 404 error #392

Open
abhaybhargav opened this issue May 21, 2024 · 0 comments
Open

Running neko with caddy - 404 error #392

abhaybhargav opened this issue May 21, 2024 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@abhaybhargav
Copy link

Hi there

I am trying to run neko as another route in my caddy config. I have another route that resolves to the /* and the neko is something that I want to get working with the /browser* route

This is my caddy config. I have followed the instructions from the reverse proxy section in the docs, but to no avail. Can anyone tell me what I am doing wrong here?

{
  "apps": {
    "http": {
      "servers": {
        "srv0": {
          "listen": [":80"],
          "routes": [
            {
              "match": [
                {
                  "host": ["my.host"],
                  "path": ["/browser*"]
                }
              ],
              "handle": [
                {
                  "handler": "reverse_proxy",
                  "upstreams": [
                    {
                      "dial": "127.0.0.1:8080"
                    }
                  ],
                  "headers": {
                    "request": {
                      "set": {
                        "Host": ["{http.request.host}"],
                        "X-Real-IP": ["{http.request.remote.host}"],
                        "X-Forwarded-For": ["{http.request.remote.host}"],
                        "X-Forwarded-Proto": ["{http.request.scheme}"]
                      }
                    }
                  }
                }
              ]
            },
            {
              "match": [
                {
                  "host": ["my.host"]
                }
              ],
              "handle": [
                {
                  "handler": "subroute",
                  "routes": [
                    {
                      "handle": [
                        {
                          "handler": "reverse_proxy",
                          "upstreams": [
                            {
                              "dial": "127.0.0.1:3000"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    }
  }
}
@m1k1o m1k1o added help wanted Extra attention is needed question Further information is requested labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants