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

Odoo16 update + Gevent / Websocket support #2

Closed
schwahue opened this issue Oct 27, 2023 · 6 comments
Closed

Odoo16 update + Gevent / Websocket support #2

schwahue opened this issue Oct 27, 2023 · 6 comments

Comments

@schwahue
Copy link

Hi wbsouza,

I am attempting to configure Odoo16 with traefik. However, I am encountering some roadblocks. What are the headers configuration needed to get traefik to work with Odoo16?

Regards

@wbsouza
Copy link
Owner

wbsouza commented Nov 20, 2023

Hey, I just saw your message today, I will try to get it running on Odoo 16 this week and see how it goes.

@schwahue
Copy link
Author

Hi wbsouza, Thank you for replying. The issue particularly lies with the websocket, I keep getting error 400

@schwahue
Copy link
Author

Hi I've found this on one of Odoo issue, might be helpful. I will try it and post here.

# global config

  • "traefik.enable=true"
  • "traefik.docker.network=traefik-swarm"

# main routers 8069 web rule "/*"

  • "traefik.http.routers.${NAME_SERVICE_TRAEFIK}.tls=true"
  • "traefik.http.routers.odoo16.entrypoints=https"
  • "traefik.http.routers.odoo16.rule=Host(traefik.odoo16.com)"
  • "traefik.http.routers.odoo16.service=odoo16@docker"
  • "traefik.http.routers.odoo16.middlewares=gzip"
  • "traefik.http.services.odoo16.loadbalancer.server.port=8069"

# main routers 8072 websocket rule "/websocket"

  • "traefik.http.routers.backend-websock.tls=true"
  • "traefik.http.routers.backend-websock.entrypoints=https"
  • "traefik.http.routers.backend-websock.rule=Path(/websocket) && Host(traefik.odoo16.com)"
  • "traefik.http.routers.backend-websock.middlewares=upgradeheader,sslheader,gzip"
  • "traefik.http.routers.backend-websock.service=backend-websock@docker"
  • "traefik.http.services.backend-websock.loadbalancer.server.port=8072"

# upgrade headers

  • "traefik.http.middlewares.upgradeheader.headers.customRequestHeaders.Upgrade=websocket"
  • "traefik.http.middlewares.upgradeheader.headers.customRequestHeaders.Connection=upgrade"
  • "traefik.http.middlewares.upgradeheader.headers.hostsproxyheaders=websocket,Upgrade"
  • "traefik.http.middlewares.upgradeheader.headers.forcestsheader=true"
  • "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"

# gzip compress

  • "traefik.http.middlewares.gzip.compress=true"

@schwahue
Copy link
Author

@schwahue
Copy link
Author

This works for me now

@wbsouza
Copy link
Owner

wbsouza commented Dec 14, 2023

Great! Thanks for your efforts, I will need this solution to run a Odoo 16 now :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants