fixed nginx template
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
server {
|
||||
listen 80 http2;
|
||||
listen [::]:80 http2;
|
||||
erver {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
auth_basic "";
|
||||
auth_basic_user_file /etc/nginx/htpasswd/htpasswd_scan;
|
||||
|
||||
location /scan {
|
||||
content_by_lua_block {
|
||||
os.execute("scanimage >/srv/scans/image.jpg")
|
||||
ngx.redirect("/scan/image")
|
||||
os.execute("scanimage --format jpeg >/srv/scans/image.jpg")
|
||||
ngx.redirect("/scan/image.jpg")
|
||||
}
|
||||
}
|
||||
|
||||
location /scan/image {
|
||||
|
||||
location /scan/image.jpg {
|
||||
alias /srv/scans/image.jpg;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user