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

Nginx with SSL #10

Open
S0PEX opened this issue Mar 14, 2019 · 2 comments
Open

Nginx with SSL #10

S0PEX opened this issue Mar 14, 2019 · 2 comments
Assignees

Comments

@S0PEX
Copy link

S0PEX commented Mar 14, 2019

Hey and thanks for this repo,

so I am currently trying to move my xenforo to docker. And I got everything up and running under nginx, PHP-fpm but for some reason, I cannot get my Cloudflare ssl working. I already added the variables needed for the nginx-proxy.

nginx:
    image: xfrocks/xenforo:nginx
    environment:
      - NGINX_ACCESS_LOG_FORMAT=timed
      - NGINX_FAST_CGI_PASS=php-fpm:9000
      - VIRTUAL_HOST=mydomain.com
      - VIRTUAL_PROTO=https

But for some odd reason, the requests are not forwarded correctly.
Might you have a clue?

Regards Artur

@daohoangson
Copy link
Contributor

We actually doesn't do TLS termination at nginx so the image doesn't handle https out of box.

If you are using CloudFlare, you can use Flexible SSL option. CloudFlare will serve https to your users but it will connect to your server via http.

@daohoangson daohoangson self-assigned this Mar 15, 2019
@S0PEX
Copy link
Author

S0PEX commented Mar 15, 2019

Alright, thanks u. Gonna rebuild the image with the SSL config.

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