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 /defaults/web
|
||||
RUN chmod +x /defaults/web/backupbot.cgi
|
||||
RUN chmod +x /defaults/web/cgi-bin/backupbot.cgi
|
||||
# Expose web frontend port
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
<script>
|
||||
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 form = document.getElementById('configForm');
|
||||
Object.keys(data).forEach(key => {
|
||||
@@ -74,7 +74,7 @@
|
||||
e.preventDefault();
|
||||
const formData = new FormData(document.getElementById('configForm'));
|
||||
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',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
body: JSON.stringify(obj)
|
||||
|
||||
Reference in New Issue
Block a user