forked from wandenberg/nginx-video-thumbextractor-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
66 lines (52 loc) · 1.74 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
pid logs/nginx.pid;
error_log logs/nginx-main_error.log debug;
# Development Mode
master_process off;
daemon off;
worker_processes 2;
events {
worker_connections 1024;
#use kqueue; # MacOS
use epoll; # Linux
}
http {
default_type application/octet-stream;
access_log logs/nginx-http_access.log;
error_log logs/nginx-http_error.log debug;
proxy_cache_path /tmp/cache levels=1:2 keys_zone=zone:10m inactive=10d max_size=100m;
server {
listen 8080;
server_name localhost;
location / {
video_thumbextractor;
video_thumbextractor_video_filename $uri;
video_thumbextractor_video_second $arg_second;
video_thumbextractor_image_width $arg_width;
video_thumbextractor_image_height $arg_height;
video_thumbextractor_only_keyframe off;
video_thumbextractor_next_time off;
}
}
server {
listen 8081;
server_name localhost;
location / {
video_thumbextractor;
video_thumbextractor_video_filename $uri;
video_thumbextractor_video_second $arg_second;
video_thumbextractor_image_width $arg_width;
video_thumbextractor_image_height $arg_height;
proxy_set_header Host "static_files_server";
proxy_pass http://localhost:8081;
proxy_cache zone;
proxy_cache_key "$uri";
proxy_cache_valid 200 1m;
}
}
server {
listen 8081;
server_name static_files_server;
location / {
}
}
}