[W0-2] fixing nginx reverse proxy configuration

This commit is contained in:
x
2025-09-14 00:50:59 +02:00
parent 475af5e09c
commit fda561084f
2 changed files with 47 additions and 35 deletions

View File

@@ -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;
}
}
```