cachethq / cachethq/Docker

problem with nginx proxy before docker container

Open
#374 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
439
Forks
271
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have installed cachet via docker, everything works fine very good job ;-)

**BUT I have change the port section like this:**

```
ports:
- 8080:8000
```

**BUT if I create some nginx server on the docker host like this:**

```
upstream ssp {
server 127.0.0.1:8080;
}

location / {
proxy_pass http://ssp;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Origin http://$host;
proxy_set_header X-Forwarded-Ssl off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Port 80;
}
```

My nginx server make HTTP to HTTPS redirect and make the SSL connection. Unfortunately cachet website look not so good the content could not be load correctly. Any idea what I can do now? Is cachet docker not ready for proxy?

Regards!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.