Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hallo,

gibt es eine Möglichkeit mehreren Domains auf einmal z.B. eine weitere IP zuzuordnen ohne jede einzeln bearbeiten zu müssen?

Danke und lG,

Afox

Von aus aus nicht, schreib dir halt ein kleines scriptchen was die API nutzt.

  • Author

Ich bin auf dieses Thema gestoßen:

Dort gibt es ein Beispiel für curl:

curl --location --request POST 'https://MYDOMAIN/api.php' \
--header 'Content-Type: application/json' \
--data-raw '{
    "header": {
        "apikey": "MYAPIKEY",
        "secret": "MYSECRET"
    },
    "body": {
        "command": "Froxlor.listFunctions"
    }
}'

Meine Frage lautet nun wie ich das für den Befehl "Domains.update" umbaue. Den Command auszutauschen bekomme ich noch hin aber bei den weiteren Parametern weiß ich nicht wie man die einträgt. Meine Vermutung lautet ich benötige "id" oder "domainname" zur Identifizierung und den Array "ipandport" bzw. "ssl_ipandport".

 

 

  • Author

Ich versuche mal zu lösen :D

"body": {
	"command": "Domains.update",
	"params": {
       		"id": "###",
       		"ipandport": {"###","###"}
       	}
}

Über ein richtig oder falsch würde ich mich freuen bzw. eine kleine Korrektur falls nicht komplett falsch.

  • Author

Also der Befehl hat bis auf die ipandport-Zeile gestimmt. Dort muss es eine eckige Klammer sein ["###","###"].

Ein Problem habe ich allerdings durch das mehrmalige Ausführen des Befehls erhalten:

Quote

"status": 500,
    "status_message": "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '#domainid#-2' for key 'PRIMARY'",
    "data": null

 

4 minutes ago, Afox said:

  "status_message": "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '#domainid#-2' for key 'PRIMARY'",

jo du versuchst die gleiche IP mehrfach einer domain hinzuzufügen, erlaubt die datenbank nicht

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.