Files
dw0/README.md

62 lines
1.3 KiB
Markdown

# dw0
w0bm in docker
This repository contains a working solution for easy deployment of the legacy [w0bm](https://git.lat/w0bm/w0bm) software
To make use of this you can just pull this repo and build the image and or run the compose
You still need to initialize the software and the database manually if you do not have a already existing initialized database.
First of all put a .webm file named 1.webm in `w0bm-data/b`
`docker exec -it w0bm-legacy /bin/bash`
`php7.1 artisan migrate`
`php7.1 artisan db:seed`
`php7.1 artisan tags`
Now visit http://localhost:8090
To get upload working do this
```
$ git clone https://git.lat/w0bm/w0bm.git
$ cd w0bm
$ mkdir public/thumbs
$ mkdir public/b
$ mkdir public/thumbs/beta
$ mkdir public/thumbs/blurred
```
`docker exec -it w0bm /bin/bash`
```
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
# 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;
}
}
```