From 4a1076406c365533361428ef07697fa2c519608a Mon Sep 17 00:00:00 2001 From: Robin Appelman <robin@icewind.nl> Date: Mon, 12 Apr 2021 18:19:28 +0200 Subject: [PATCH] show correct version in --help fixes #69 Signed-off-by: Robin Appelman <robin@icewind.nl> --- README.md | 15 +++++++++++++++ build.rs | 1 + 2 files changed, 16 insertions(+) diff --git a/README.md b/README.md index c3380bd..78408de 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,21 @@ Once set the metrics are available in a prometheus compatible format at `/metric If your nextcloud is using a self-signed certificate then you either need to set the `NEXTCLOUD_URL` to a non-https, local url, or disable certificate verification by setting `ALLOW_SELF_SIGNED=true`. +## Troubleshooting + +When running into issues you should always first ensure that you're on the latest release, as your issue might either +already be fixed or additional diagnostics might have been added. + +### "push server is not a trusted proxy" + +- Ensure you haven't added a duplicate `trusted_proxies` list to your `config.php`. +- If you're modified your `forwarded_for_headers` config, ensure that `HTTP_X_FORWARDED_FOR` is included. +- If your nextcloud hostname resolves do a dynamic ip you can try setting the `NEXTCLOUD_URL` to the internal ip of the server. + + Alternatively, editing the `/etc/hosts` file to point your nextcloud domain to the internal ip can work in some setups. +- If you're running your setup in docker and your containers are linked, you should be able to use the name of the nextcloud container as hostname in the `NEXTCLOUD_URL` + + ## Developing As developer of a Nextcloud app or client you can use the `notify_push` app to receive real time notifications from the diff --git a/build.rs b/build.rs index e0214b8..18e55f8 100644 --- a/build.rs +++ b/build.rs @@ -7,4 +7,5 @@ fn main() { let appinfo_path: PathBuf = "".into(); let appinfo = get_appinfo(&appinfo_path).expect("Failed to load appinfo"); println!("cargo:rustc-env=NOTIFY_PUSH_VERSION={}", appinfo.version()); + println!("cargo:rustc-env=CARGO_PKG_VERSION={}", appinfo.version()); } -- GitLab