Make sure Docker is installed!
Get your Minio endpoint url, accesskey, and secretkey ready!
docker plugin install rexray/s3fs \| use deno_core::Op; | |
| use deno_core::ZeroCopyBuf; | |
| use deno_core::{CoreIsolate, StartupData}; | |
| use std::str; | |
| fn main() { | |
| println!("v8 version: {}", deno_core::v8_version()); | |
| let mut isolate = CoreIsolate::new(StartupData::None, false); |
| # Balancing over 4 nodes by hashing URI (consistently with md5) | |
| # onto 16 shards. | |
| upstream x0 { server 192.168.0.2; server 192.168.0.3 backup; } | |
| upstream x1 { server 192.168.0.2; server 192.168.0.4 backup; } | |
| upstream x2 { server 192.168.0.2; server 192.168.0.5 backup; } | |
| upstream x3 { server 192.168.0.2; server 192.168.0.3 backup; } | |
| upstream x4 { server 192.168.0.3; server 192.168.0.4 backup; } |
| server { | |
| # see: http://wiki.nginx.org/Pitfalls | |
| # see: http://wiki.nginx.org/IfIsEvil | |
| listen 80; | |
| root /app; | |
| index index.html index.htm index.php; | |
| error_page 404 /index.php; | |
| # Make site accessible from http://set-ip-address.xip.io |
| server { | |
| server_name img.l; | |
| root /var/www/cache/store/ns365; | |
| index index.html; | |
| # This requests the original file from itself and then resizes the image. | |
| location ~ /resize/(\d+)x(\d+)/(.*) { | |
| proxy_pass http://img.l/$3; | |
| image_filter resize $1 $2; | |
| image_filter_jpeg_quality 90; |