[W0-2] fixing nginx reverse proxy configuration
This commit is contained in:
25
README.md
25
README.md
@@ -18,7 +18,7 @@ First of all put a .webm file named 1.webm in `w0bm-data/b`
|
||||
|
||||
`php7.1 artisan tags`
|
||||
|
||||
Now visit http://localhost:8080
|
||||
Now visit http://localhost:8090
|
||||
|
||||
To get upload working do this
|
||||
|
||||
@@ -38,4 +38,25 @@ root@703c9472fed5:/opt/w0bm/public# chmod -R 777 thumbs/
|
||||
root@703c9472fed5:/opt/w0bm/public# chmod -R 777 b
|
||||
```
|
||||
|
||||
inside the container, it applied to the mount
|
||||
inside the container, it applied to the mount
|
||||
|
||||
# Reverse Proxy
|
||||
|
||||
nginx
|
||||
|
||||
`url = foo.bar`
|
||||
|
||||
```
|
||||
server {
|
||||
server_name $url;
|
||||
…
|
||||
location / {
|
||||
proxy_pass http://localhost:8090;
|
||||
proxy_set_header Host $url;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
sub_filter 'http://' 'https://';
|
||||
sub_filter_types *;
|
||||
sub_filter_once off;
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user