alternativ #2
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
w0bm/public
|
w0bm-data
|
||||||
w0bm-db
|
w0bm-db
|
30
README.md
30
README.md
@@ -12,33 +12,21 @@ First of all put a .webm file named 1.webm in `w0bm-data/b`
|
|||||||
|
|
||||||
`docker exec -it w0bm-legacy /bin/bash`
|
`docker exec -it w0bm-legacy /bin/bash`
|
||||||
|
|
||||||
`php7.1 artisan migrate`
|
`php artisan migrate`
|
||||||
|
|
||||||
`php7.1 artisan db:seed`
|
`php artisan db:seed`
|
||||||
|
|
||||||
`php7.1 artisan tags`
|
`php artisan tags`
|
||||||
|
|
||||||
Now visit http://localhost:8090
|
Now visit http://localhost:8080
|
||||||
|
|
||||||
To get upload working do this
|
# Troubleshooting
|
||||||
|
|
||||||
```
|
On the host do this to fix
|
||||||
$ 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`
|
- Uploads
|
||||||
|
- `sudo chown -R 1000:1000 w0bm-data`
|
||||||
|
|
||||||
```
|
|
||||||
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
|
# Reverse Proxy
|
||||||
|
|
||||||
@@ -51,7 +39,7 @@ server {
|
|||||||
server_name $url;
|
server_name $url;
|
||||||
…
|
…
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8090;
|
proxy_pass http://localhost:8080;
|
||||||
proxy_set_header Host $url;
|
proxy_set_header Host $url;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
sub_filter 'http://' 'https://';
|
sub_filter 'http://' 'https://';
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
php-fpm7.1 -F -R &
|
|
||||||
exec nginx -g "daemon off;"
|
|
@@ -1,57 +0,0 @@
|
|||||||
user root;
|
|
||||||
worker_processes auto;
|
|
||||||
worker_cpu_affinity auto;
|
|
||||||
pid /run/nginx.pid;
|
|
||||||
error_log /var/log/nginx/error.log;
|
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
|
||||||
events {
|
|
||||||
worker_connections 768;
|
|
||||||
# multi_accept on;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
|
|
||||||
##
|
|
||||||
# Basic Settings
|
|
||||||
##
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
tcp_nopush on;
|
|
||||||
types_hash_max_size 2048;
|
|
||||||
server_tokens off; # Recommended practice is to turn this off
|
|
||||||
# server_names_hash_bucket_size 64;
|
|
||||||
# server_name_in_redirect off;
|
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
##
|
|
||||||
# SSL Settings
|
|
||||||
##
|
|
||||||
|
|
||||||
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3 (POODLE), TLS 1.0, 1.1
|
|
||||||
ssl_prefer_server_ciphers off; # Don't force server cipher order.
|
|
||||||
|
|
||||||
##
|
|
||||||
# Logging Settings
|
|
||||||
##
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
|
||||||
|
|
||||||
##
|
|
||||||
# Gzip Settings
|
|
||||||
##
|
|
||||||
gzip on;
|
|
||||||
|
|
||||||
# gzip_vary on;
|
|
||||||
# gzip_proxied any;
|
|
||||||
# gzip_comp_level 6;
|
|
||||||
# gzip_buffers 16 8k;
|
|
||||||
# gzip_http_version 1.1;
|
|
||||||
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
||||||
|
|
||||||
##
|
|
||||||
# Virtual Host Configs
|
|
||||||
##
|
|
||||||
|
|
||||||
include /etc/nginx/conf.d/*.conf;
|
|
||||||
}
|
|
@@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
#w0bm.com
|
|
||||||
server {
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
listen 8090;
|
|
||||||
|
|
||||||
root /opt/w0bm/public;
|
|
||||||
client_max_body_size 500M;
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
include fastcgi.conf;
|
|
||||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
|
|
||||||
#fastcgi_param GEOIP_ADDR $remote_addr;
|
|
||||||
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
|
|
||||||
}
|
|
||||||
location ~* \.(?:css|js)$ {
|
|
||||||
gzip on;
|
|
||||||
expires 1y;
|
|
||||||
add_header Cache-Control "public";
|
|
||||||
}
|
|
||||||
location ~* \.(?:jpg|jpeg|gif|png|ico|svg)$ {
|
|
||||||
expires 1M;
|
|
||||||
access_log off;
|
|
||||||
add_header Cache-Control "public";
|
|
||||||
}
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@@ -4,14 +4,10 @@ services:
|
|||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
container_name: w0bm
|
container_name: w0bm
|
||||||
image: w0bm:f-1
|
image: w0bm:f-1
|
||||||
# hostname: "w0bm.lokal"
|
|
||||||
build:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
networks:
|
networks:
|
||||||
- w0bm
|
- w0bm
|
||||||
# For later
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./w0bm-data/logs/:/home/w0bm/application/w0bm/storage/logs/
|
- ./w0bm-data/logs/:/home/w0bm/application/w0bm/storage/logs/
|
||||||
- ./w0bm-data/b/:/home/w0bm/application/w0bm/public/b/
|
- ./w0bm-data/b/:/home/w0bm/application/w0bm/public/b/
|
||||||
|
Reference in New Issue
Block a user