aspendigital / docker-octobercms

Dockerized October CMS: PHP, Composer, October core and dependencies
MIT License
150 stars 55 forks source link

can I have https at local port #11

Closed iamike closed 6 years ago

iamike commented 6 years ago

when I was developing at local site. sometimes I need using ngrok to reflect the local environment to the outside world. but it seems it doesn't have some config that can let me to do this. so How can I have 127.0.0.1:443 open? ideally, if I can set ports at docker-compose file just like this:

    ports:
      - 80:80
      - 443:443

it will be great.

I tried:

ports:
      - 80:80
      - 443:80

but the template still using http:// not https for the source files

iamike commented 6 years ago

sorry, I fixed it. no need for mirror 2 port just 80 is enough, this one is crucial

CMS_LINK_POLICY=secure

petehalverson commented 6 years ago

Whenever the container is behind a proxy, you'll need to useCMS_LINK_POLICY=secure.

I should point out CMS_BACKEND_FORCE_SECURE defaults to false for this purpose as well.