mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
nginx/templates/iiab.conf.j2, usb_lib/files/upload/header.php, usb_lib/tasks/install.yml: move app out of local_content and into /library/www/html/
This commit is contained in:
parent
8cbcff710e
commit
fb07b9e3e5
3 changed files with 9 additions and 9 deletions
|
@ -5,11 +5,11 @@ location / {
|
|||
location /usb {
|
||||
alias /library/www/html/local_content/;
|
||||
fancyindex on; # autoindex on;
|
||||
add_before_body /usb/upload/button.html;
|
||||
add_before_body /upload2usb/button.html;
|
||||
}
|
||||
|
||||
location ~ ^/usb/upload/(.*)\.php$ {
|
||||
alias /library/www/html/local_content/upload/$1.php;
|
||||
location ~ ^/upload2usb/(.*)\.php$ {
|
||||
alias /library/www/html/upload2usb/$1.php;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
|
@ -23,7 +23,7 @@ location ~ ^/usb/upload/(.*)\.php$ {
|
|||
|
||||
location /local_content/ {
|
||||
fancyindex on; # autoindex on;
|
||||
add_before_body /usb/upload/button.html;
|
||||
add_before_body /upload2usb/button.html;
|
||||
}
|
||||
|
||||
location /info {
|
||||
|
|
|
@ -16,4 +16,4 @@
|
|||
color: #ddd;
|
||||
}
|
||||
</style>
|
||||
<a class="button" href="/usb/upload/">Upload to USB</a>
|
||||
<a class="button" href="/upload2usb/">Upload to USB</a>
|
||||
|
|
|
@ -79,18 +79,18 @@
|
|||
- { src: 'iiab-usb_lib-show-all-off', dest: '/usr/bin/', mode: '0755' }
|
||||
- { src: 'iiab-clean-usb.sh', dest: '/usr/sbin/', mode: '0755' }
|
||||
|
||||
- name: '2025-01-05: Add upload2usb app (#3875) directory to local_content'
|
||||
- name: '2025-01-05: Add upload2usb app (#3875) directory to doc_root'
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ doc_root }}/local_content/upload"
|
||||
path: "{{ doc_root }}/upload2usb"
|
||||
owner: "{{ apache_user }}"
|
||||
group: "{{ apache_user }}"
|
||||
mode: 0755
|
||||
|
||||
- name: '2025-01-05: Copy upload2usb app (#3875) files from files/upload/ to local_content'
|
||||
- name: '2025-01-05: Copy upload2usb app (#3875) files from files/upload/ to upload2usb'
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ doc_root }}/local_content/upload" # /library/www/html
|
||||
dest: "{{ doc_root }}/upload2usb" # /library/www/html
|
||||
with_fileglob:
|
||||
- upload/*
|
||||
|
||||
|
|
Loading…
Reference in a new issue