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

Can't connect to a server behind authentication #356

Open
tvanicraath opened this issue Nov 12, 2024 · 0 comments
Open

Can't connect to a server behind authentication #356

tvanicraath opened this issue Nov 12, 2024 · 0 comments
Labels
Status: Created The issue has been created but not yet assigned or addressed. Type: Bug Something isn't working

Comments

@tvanicraath
Copy link

Bug Description

I am running plant-it (both, front-end and server) in docker. The setup is working fine if I provide server url on the front-end over docker network (i.e, server_url = http://plantit-server:8080). I am also exposing my server via cloudflared tunnel. If i set up server_url = https://plantit.mywebsite.com, without "tunnel bypass" setting, the setup is working fine. However, I would like to ensure that only I can access the server. For that, if I change this "tunnel bypass" setting to "allow for a specific group", then the front-end shows "Oops! Cannot connect to the server error".

How to reproduce

Set up plantit server that is behind cloudflare authentication.
Point the frontend to the above server.

Expected behavior

The frontend should connect to server behind cloudflare authentication (after potentially allowing for a pop-up window that deals with cloudflare authentication.)

Logs

I didn't find any logs in debug mode. Here are the logs of the last run.

plantit  | 2024-11-12T05:16:41.222Z  INFO 26 --- [           main] c.github.mdeluise.plantit.Application    : Started Application in 12.046 seconds (process running for 12.799)
plantit  | 2024-11-12T05:16:41.227Z  INFO 26 --- [           main] c.g.mdeluise.plantit.ApplicationConfig   : UPDATE_EXISTING flag set to false. Skipping update of existing species.
plantit  | 2024-11-12T05:18:22.363Z DEBUG 26 --- [nio-8080-exec-3] c.g.m.p.systeminfo.SystemVersionService  : retrieve the system version info from GitHub.
plantit  | 2024-11-12T05:18:22.525Z DEBUG 26 --- [nio-8080-exec-5] c.g.mdeluise.plantit.plant.PlantService  : Search for DB saved plants
plantit  | 2024-11-12T05:18:23.065Z  WARN 26 --- [nio-8080-exec-5] ration$PageModule$WarningLoggingModifier : Serializing PageImpl instances as-is is not supported, meaning that there is no guarantee about the stability of the resulting JSON structure!
plantit  | 	For a stable JSON structure, please use Spring Data's PagedModel (globally via @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO))
plantit  | 	or Spring HATEOAS and Spring Data's PagedResourcesAssembler as documented in https://docs.spring.io/spring-data/commons/reference/repositories/core-extensions.html#core.web.pageables.
plantit  |

Screenshots

No response

Plant-it version

v0.10.0

Setup Method

Docker

Operating System

Linux (Ubuntu, CentOS,...)

Client details

OS: Mac. Browser: Chrome.

@tvanicraath tvanicraath added Status: Created The issue has been created but not yet assigned or addressed. Type: Bug Something isn't working labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Created The issue has been created but not yet assigned or addressed. Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant