File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ worker_processes 1 ;
2
+
3
+ events {
4
+ worker_connections 1024 ;
5
+ }
6
+
7
+ http {
8
+ include mime.types;
9
+ default_type application/octet-stream;
10
+
11
+ sendfile on ;
12
+
13
+ keepalive_timeout 65 ;
14
+
15
+ server {
16
+ listen 80 ;
17
+ server_name localhost;
18
+
19
+ location / {
20
+
21
+ set $fg_color 000000 ;
22
+ set $bg_color FFFFFF;
23
+ set $level 0 ;
24
+ set $hint 2 ;
25
+ set $size 300 ;
26
+ set $margin 80 ;
27
+ set $version 2 ;
28
+ set $case 0 ;
29
+ set $txt "https://soulteary.com" ;
30
+
31
+ if ( $arg_fg_color ) {
32
+ set $fg_color $arg_fg_color ;
33
+ }
34
+ if ( $arg_bg_color ) {
35
+ set $bg_color $arg_bg_color ;
36
+ }
37
+ if ( $arg_level ) {
38
+ set $level $arg_level ;
39
+ }
40
+ if ( $arg_hint ) {
41
+ set $hint $arg_hint ;
42
+ }
43
+ if ( $arg_size ) {
44
+ set $size $arg_size ;
45
+ }
46
+ if ( $arg_margin ) {
47
+ set $margin $arg_margin ;
48
+ }
49
+ if ( $arg_ver ) {
50
+ set $version $arg_ver ;
51
+ }
52
+ if ( $arg_case ) {
53
+ set $case $arg_case ;
54
+ }
55
+ if ( $arg_txt ) {
56
+ set $txt $arg_txt ;
57
+ }
58
+
59
+ qrcode_fg_color $fg_color ;
60
+ qrcode_bg_color $bg_color ;
61
+
62
+ qrcode_level $level ;
63
+ qrcode_hint $hint ;
64
+ qrcode_size $size ;
65
+ qrcode_margin $margin ;
66
+ qrcode_version $version ;
67
+ qrcode_casesensitive $case ;
68
+ qrcode_urlencode_txt $txt ;
69
+
70
+ qrcode_gen;
71
+ }
72
+
73
+ }
74
+ }
You can’t perform that action at this time.
0 commit comments