-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
76 lines (63 loc) · 1.69 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
67
68
69
70
71
72
73
74
75
76
load_module modules/ngx_http_qrcode_module.so;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
set $fg_color 000000;
set $bg_color FFFFFF;
set $level 0;
set $hint 2;
set $size 300;
set $margin 80;
set $version 2;
set $case 0;
set $txt "https://soulteary.com";
if ( $arg_fg_color ) {
set $fg_color $arg_fg_color;
}
if ( $arg_bg_color ) {
set $bg_color $arg_bg_color;
}
if ( $arg_level ) {
set $level $arg_level;
}
if ( $arg_hint ) {
set $hint $arg_hint;
}
if ( $arg_size ) {
set $size $arg_size;
}
if ( $arg_margin ) {
set $margin $arg_margin;
}
if ( $arg_ver ) {
set $version $arg_ver;
}
if ( $arg_case ) {
set $case $arg_case;
}
if ( $arg_txt ) {
set $txt $arg_txt;
}
qrcode_fg_color $fg_color;
qrcode_bg_color $bg_color;
qrcode_level $level;
qrcode_hint $hint;
qrcode_size $size;
qrcode_margin $margin;
qrcode_version $version;
qrcode_casesensitive $case;
qrcode_urlencode_txt $txt;
qrcode_gen;
}
}
}