mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update
This commit is contained in:
@@ -36,4 +36,21 @@ mysql:
|
||||
restart: always
|
||||
```
|
||||
|
||||
## /etc/nginx/sites-enabled/discuz
|
||||
|
||||
```
|
||||
server {
|
||||
listen 80;
|
||||
server_name discuz.datageek.info;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
> :warning: You should pass HTTP headers to fix wrong URL.
|
||||
|
||||
[1]: http://www.discuz.net
|
||||
|
||||
Reference in New Issue
Block a user