Back

Can I use Nginx ?

  • 0
  • Self Hosted
  • Databases
  • Web
ORIZON
6 May, 2023, 15:04

I have a Kubernetes Cluster which uses Nginx Ingress Controller to Route Traffic to Pods/Service. Its working now. But I want to know if I need to do anything other than this like Adding Annotations for Appwrite to Work perfectly?

TL;DR
User wants to know if they can use Nginx instead of Traefik for routing traffic to their Appwrite container in a Kubernetes cluster. - A user suggests replicating the Traefik routing configuration in Nginx to achieve the same functionality. - Another user shares their experience of using Nginx as a reverse proxy for their self-hosted Appwrite instance. - The user confirms that they have removed all Traefik labels and asks if they need to add any annotations for Appwrite. - No solution or answer is provided.
safwan
6 May, 2023, 15:13

I haven't used Kubernetes enough, but all I can say is that I use nginx for my self hosted inatance of appwrite. All I've done is put up a reverse proxy, and it works completely fine

ORIZON
6 May, 2023, 15:14

I removed all the Traefik Labels. Is it fine?

Bouahaza
6 May, 2023, 15:26

If you replicate traeffik routing config, you can remove it and use nginx, caddy or any otherone yes

ORIZON
6 May, 2023, 15:32

What my Current Config is the Nginx Ingress Controller sends all the traffic from api.example.com to Main Appwrite Container.

ORIZON
6 May, 2023, 16:22

?

Bouahaza
6 May, 2023, 17:26

It's enough 😉

Bouahaza
6 May, 2023, 17:28

If you want exact same config on nginx than appwrite team set for traefik, you need to implement all this rules on appwrite main container

Bouahaza
6 May, 2023, 17:29
TypeScript
labels:
    - traefik.enable=true
    - traefik.constraint-label-stack=appwrite
    - traefik.docker.network=appwrite
    - traefik.http.services.appwrite_api.loadbalancer.server.port=80
    #http
    - traefik.http.routers.appwrite_api_http.entrypoints=appwrite_web
    - traefik.http.routers.appwrite_api_http.rule=PathPrefix(`/`)
    - traefik.http.routers.appwrite_api_http.service=appwrite_api
    # https
    - traefik.http.routers.appwrite_api_https.entrypoints=appwrite_websecure
    - traefik.http.routers.appwrite_api_https.rule=PathPrefix(`/`)
    - traefik.http.routers.appwrite_api_https.service=appwrite_api
    - traefik.http.routers.appwrite_api_https.tls=true
ORIZON
6 May, 2023, 17:33

Thanks Mate

ORIZON
6 May, 2023, 17:37

👍

safwan
6 May, 2023, 17:44

@ORIZON checking in to see if you tried the above?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more