one more time
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s
This commit is contained in:
@@ -28,7 +28,7 @@ RUN chmod +x /etc/services.d/backupbot/run
|
|||||||
|
|
||||||
# Copy web frontend
|
# Copy web frontend
|
||||||
COPY web /defaults/web
|
COPY web /defaults/web
|
||||||
RUN chmod +x /defaults/web/backupbot.cgi
|
RUN chmod +x /defaults/web/cgi-bin/backupbot.cgi
|
||||||
# Expose web frontend port
|
# Expose web frontend port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
async function loadConfig() {
|
async function loadConfig() {
|
||||||
const res = await fetch('/config/web/backupbot.cgi?action=get');
|
const res = await fetch('/cgi-bin/backupbot.cgi?action=get');
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
const form = document.getElementById('configForm');
|
const form = document.getElementById('configForm');
|
||||||
Object.keys(data).forEach(key => {
|
Object.keys(data).forEach(key => {
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const formData = new FormData(document.getElementById('configForm'));
|
const formData = new FormData(document.getElementById('configForm'));
|
||||||
const obj = Object.fromEntries(formData.entries());
|
const obj = Object.fromEntries(formData.entries());
|
||||||
const res = await fetch('/config/web/backupbot.cgi?action=set', {
|
const res = await fetch('/cgi-bin/backupbot.cgi?action=set', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: JSON.stringify(obj)
|
body: JSON.stringify(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user