morph1904 / Tyger2

A Reverse Proxy Application
GNU General Public License v2.0
50 stars 11 forks source link

Is this still being developed? #14

Closed PsychedelicHell closed 4 years ago

PsychedelicHell commented 4 years ago

I am curious as to whether this is still being worked on, this would be perfect for my project but I can't seem to get it to forward requests to my servers once everything is installed.

morph1904 commented 4 years ago

Hello.

Yes I am still doing work on this project but I have limited time so it can take a while to view issues etc. Can you provide any more information about your issue?

PsychedelicHell commented 4 years ago

Tyger 2 is impossible for me to get running. I switched to Tyger 1 which I've got the proxy forwarding kind of working.

My issue now is that my domain names aren't being shown. After the redirect, the URL switches to the local IP of the machine (this of course means I am also unable to view my servers outside of my local network.

I'm also unable to get the SSL certificates to generate properly. When visiting the sites, I get a warning that the certificates are bad.

morph1904 commented 4 years ago

@PsychedelicHell

OK lets see if I can help, first issue though, I do not support TygerCaddy anymore as the architecture of the first version is very different to the new one. I am sure I can get you up and running with Tyger 2 though.

I need to ask some questions to get some details about your issue.

  1. Is this a docker install, or an ubuntu fat install?
  2. Did you have issues installing it or getting it to proxy requests?
  3. For your certificate issue, did you select staging? This is the LetsEncrypt test server and does not produce valid certificates.
PsychedelicHell commented 4 years ago

It's a Ubuntu fat install, the instructions for installing on Docker are not clear enough for me and no I haven't selected staging.

I am trying to get HTTPS working with my Next Cloud instance.

Here's the log from my Tyger 2:

2019/12/15 14:23:10 [INFO] Serving http://:9091/api
2019/12/15 14:23:10 [INFO] Serving http://:9091
2019/12/15 14:23:10 [INFO][cache:0xc00008c910] Started certificate maintenance routine
2019/12/15 14:24:37 [INFO] SIGUSR1: Reloading
2019/12/15 14:24:37 [INFO] Reloading
2019/12/15 14:24:37 [INFO][cache:0xc000418460] Started certificate maintenance routine
2019/12/15 14:24:38 [INFO][cache:0xc00008c910] Stopped certificate maintenance routine
2019/12/15 14:24:38 [INFO] Reloading complete
2019/12/15 14:25:16 [INFO] SIGUSR1: Reloading
2019/12/15 14:25:16 [INFO] Reloading
2019/12/15 14:25:16 [ERROR] Restart failed: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:25:16 [ERROR] SIGUSR1: starting with listener file descriptors: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:25:16 [INFO][cache:0xc000418140] Started certificate maintenance routine
2019/12/15 14:27:25 [INFO] SIGUSR1: Reloading
2019/12/15 14:27:25 [INFO] Reloading
2019/12/15 14:27:25 [ERROR] Restart failed: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:27:25 [ERROR] SIGUSR1: starting with listener file descriptors: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:27:25 [INFO][cache:0xc00008ceb0] Started certificate maintenance routine
2019/12/15 14:28:16 [INFO] SIGUSR1: Reloading
2019/12/15 14:28:16 [INFO] Reloading
2019/12/15 14:28:16 [ERROR] Restart failed: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:28:16 [ERROR] SIGUSR1: starting with listener file descriptors: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied
2019/12/15 14:28:16 [INFO][cache:0xc000463b30] Started certificate maintenance routine
2019/12/15 22:25:50 [INFO][cache:0xc000418460] Scanning for stale OCSP staples
2019/12/15 22:25:50 [INFO][cache:0xc000418460] Done checking OCSP staples
2019/12/15 22:26:28 [INFO][cache:0xc000418140] Scanning for stale OCSP staples
2019/12/15 22:26:28 [INFO][cache:0xc000418140] Done checking OCSP staples
2019/12/15 22:28:37 [INFO][cache:0xc00008ceb0] Scanning for stale OCSP staples
2019/12/15 22:28:37 [INFO][cache:0xc00008ceb0] Done checking OCSP staples
2019/12/15 22:29:29 [INFO][cache:0xc000463b30] Scanning for stale OCSP staples
2019/12/15 22:29:29 [INFO][cache:0xc000463b30] Done checking OCSP staples
2019/12/15 23:25:50 [INFO][cache:0xc000418460] Scanning for stale OCSP staples
2019/12/15 23:25:50 [INFO][cache:0xc000418460] Done checking OCSP staples
2019/12/15 23:26:28 [INFO][cache:0xc000418140] Scanning for stale OCSP staples
2019/12/15 23:26:28 [INFO][cache:0xc000418140] Done checking OCSP staples
2019/12/15 23:28:37 [INFO][cache:0xc00008ceb0] Scanning for stale OCSP staples
2019/12/15 23:28:37 [INFO][cache:0xc00008ceb0] Done checking OCSP staples
2019/12/15 23:29:29 [INFO][cache:0xc000463b30] Scanning for stale OCSP staples
2019/12/15 23:29:29 [INFO][cache:0xc000463b30] Done checking OCSP staples
morph1904 commented 4 years ago

OK So the logs are complaining about access to create the logs, so you might want to chown and chmod the data folder.

2019/12/15 14:25:16 [ERROR] Restart failed: open /apps/Tyger2/data/NextCloud/NextCloud.log: permission denied

This should mean that Caddy can start and work properly for you.

Docker is by far the easiest way to get this running effectively and makes maintenance easier. I would advise you go down the docker route if you can.

I can assist you further with the docker install if you would like. Are you using docker compose, or Portainer, or plain docker?

PsychedelicHell commented 4 years ago

I have no idea how to use docker, I don't know what compose, portainer or plain docker are.

Sorry dude, I'm not intelligent enough to use your software, I need very hand holding step by step instructions.

Thanks anyway, hope your software matures and I can come back in the future.