-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Expose soketi service using Ingress #38
Comments
Your organization has reached the subscribed usage limit. You can upgrade your plan at https://github.com/marketplace/code-autopilot-ai-coder Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect. Current plan usage: 102.04% Have feedback or need help? |
ingress:
enabled: true
class: nginx
annotations:
cert-manager.io/issuer: "letsencrypt-prod"
cert-manager.io/acme-challenge-type: "http01"
kubernetes.io/tls-acme: "true"
ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/secure-backends: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.org/websocket-services: "php-soketi"
nginx.ingress.kubernetes.io/server-snippets: |
location / {
proxysetheader Upgrade $httpupgrade;
proxyhttpversion 1.1;
proxysetheader X-Forwarded-Host $httphost;
proxysetheader X-Forwarded-Proto $scheme;
proxysetheader X-Forwarded-For $remoteaddr;
proxysetheader Host $host;
proxysetheader Connection "upgrade";
proxycachebypass $httpupgrade;
}
hosts:
- host: soketi.$APP_HOSTNAME
paths:
- "/"
tls:
- secretName: soketi-example-tls
hosts:
- soketi.$APP_HOSTNAME |
To anyone whom may needs to configure a Traefik Ingress for Soketi, I would recommend to use Your Middleware manifest should be like this: apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: ssl-middleware
spec:
headers:
customRequestHeaders:
Connection: keep-alive, Upgrade
Upgrade: WebSocket And inside your apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
...
spec:
...
routes:
- match: Host(`your-domain.com`)
kind: Rule
middlewares:
- name: ssl-middleware
.... |
Hello,
Thank you for the effort of putting together a Helm chart, I was wondering if there's any example to expose the soketi service using Ingress controller?
What I've tried so far:
but I recieve the following error using Laravel Echo:
(index):29 WebSocket connection to 'ws://192.168.58.2/ws:80/app/cuG014DSf9tjcjyvvuOHNfhBSZqqOBsp?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed: WebSocket is closed before the connection is established.
The text was updated successfully, but these errors were encountered: