naskio / docker-strapi

Docker image for strapi v4 (latest version)
https://hub.docker.com/r/naskio/strapi
MIT License
142 stars 49 forks source link

Cant host on subdomain or different port #4

Closed YeonV closed 2 years ago

YeonV commented 2 years ago

PUBLIC_URL is set to `https://s.example.com' via docker-compose and port is set to 1338: image Although the is port is runing correctly on 1338, it tries to resolve some parts via 1337: image when i set host to 'https://s.example.com' inside server.js, i get image

santiblanko commented 2 years ago

@YeonV the idea is to run strapi behind a reverse proxy.

YeonV commented 2 years ago

santiblanko

thanks bro! I got some help in the discord channel and now everything is working. I needed to create a docker-image with my own settings. now the specified port is used accordingly.

I used strapi dockerize to create the image

nguyenk commented 1 year ago

Hello @YeonV !

I think I'm having exactly the same issue (strapi behing traefik reverse proxy) should you please share some details on how you fixed this ?

This would save my life (or a leat spare me a lot of troubles :) )

Thank you !