mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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 {
|
location /usb {
|
||||||
alias /library/www/html/local_content/;
|
alias /library/www/html/local_content/;
|
||||||
fancyindex on; # autoindex on;
|
fancyindex on; # autoindex on;
|
||||||
add_before_body /usb/upload/button.html;
|
add_before_body /upload2usb/button.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/usb/upload/(.*)\.php$ {
|
location ~ ^/upload2usb/(.*)\.php$ {
|
||||||
alias /library/www/html/local_content/upload/$1.php;
|
alias /library/www/html/upload2usb/$1.php;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -23,7 +23,7 @@ location ~ ^/usb/upload/(.*)\.php$ {
|
||||||
|
|
||||||
location /local_content/ {
|
location /local_content/ {
|
||||||
fancyindex on; # autoindex on;
|
fancyindex on; # autoindex on;
|
||||||
add_before_body /usb/upload/button.html;
|
add_before_body /upload2usb/button.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /info {
|
location /info {
|
||||||
|
|
|
@ -16,4 +16,4 @@
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
</style>
|
</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-usb_lib-show-all-off', dest: '/usr/bin/', mode: '0755' }
|
||||||
- { src: 'iiab-clean-usb.sh', dest: '/usr/sbin/', 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:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "{{ doc_root }}/local_content/upload"
|
path: "{{ doc_root }}/upload2usb"
|
||||||
owner: "{{ apache_user }}"
|
owner: "{{ apache_user }}"
|
||||||
group: "{{ apache_user }}"
|
group: "{{ apache_user }}"
|
||||||
mode: 0755
|
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:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ doc_root }}/local_content/upload" # /library/www/html
|
dest: "{{ doc_root }}/upload2usb" # /library/www/html
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- upload/*
|
- upload/*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue