🔞 ADULT: Changeset/ - Full Archive

Changeset 2626222


Ignore:
Timestamp:
11/08/2021 04:16:37 PM (4 years ago)
Author:
wpseahorse
Message:

Release 3.0.19

  • updated configuration for remote migration API
  • updated configuration for remote manage API
Location:
wp-migrate-2-aws/trunk
Files:
7 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • wp-migrate-2-aws/trunk/admin/assets/scripts.js

    r2603472 r2626222  
    158158function wpm2aws_logError($, action, message)
    159159{
     160    var wpm2aws_migrations_api_url = wpm2aws_script_defined_variables.wpm2aws_migrations_api_url;
     161
    160162    $.post(
    161         "https://wponaws.migration.seahorse-data.com/api/migration/log/action",
     163        wpm2aws_migrations_api_url + "/api/migration/log/action",
    162164        {
    163165            "data":
  • wp-migrate-2-aws/trunk/admin/classes/apiGlobal.class.php

    r2603472 r2626222  
    22912291        // $response = wp_remote_post( , array(
    22922292        $response = wp_remote_post(
    2293             // 'http://localhost/wpm2aws-console-api/public/api/console/data',
    2294             'http://52.213.129.222/api/console/data',
     2293            WPM2AWS_CONSOLE_API_URL . '/api/console/data',
    22952294            array(
    2296 
    2297             'method' => 'POST',
    2298             'timeout' => 45,
    2299             'redirection' => 10,
    2300             'httpversion' => '1.0',
    2301             'blocking' => true,
    2302             'headers' => array(
    2303                 'Cache-Control' => 'no-cache',
    2304             ),
    2305             'body' => array( 'data' => $requestData ),
    2306             'cookies' => array(),
     2295                'method' => 'POST',
     2296                'timeout' => 45,
     2297                'redirection' => 10,
     2298                'httpversion' => '1.0',
     2299                'blocking' => true,
     2300                'headers' => array(
     2301                    'Cache-Control' => 'no-cache',
     2302                ),
     2303                'body' => array( 'data' => $requestData ),
     2304                'cookies' => array(),
    23072305            )
    23082306        );
     
    23862384        );
    23872385
    2388         // $response = wp_remote_post( 'http://localhost/wpm2aws-console-api/public/api/console/addAlarm', array(
    23892386        $response = wp_remote_post(
    2390             'http://52.213.129.222/api/console/addAlarm',
     2387            WPM2AWS_CONSOLE_API_URL . '/api/console/addAlarm',
    23912388            array(
    2392             'method' => 'PUT',
    2393             'timeout' => 45,
    2394             'redirection' => 10,
    2395             'httpversion' => '1.0',
    2396             'blocking' => true,
    2397             'headers' => array(
    2398                 'Cache-Control' => 'no-cache',
    2399             ),
    2400             'body' => array( 'data' => $requestData ),
    2401             'cookies' => array(),
     2389                'method' => 'PUT',
     2390                'timeout' => 45,
     2391                'redirection' => 10,
     2392                'httpversion' => '1.0',
     2393                'blocking' => true,
     2394                'headers' => array(
     2395                    'Cache-Control' => 'no-cache',
     2396                ),
     2397                'body' => array( 'data' => $requestData ),
     2398                'cookies' => array(),
    24022399            )
    24032400        );
     
    24772474        );
    24782475        // wp_die(print_r($instanceDetails));
    2479         // $response = wp_remote_post( 'http://localhost/wpm2aws-console-api/public/api/console/rebootInstance', array(
     2476
    24802477        $response = wp_remote_post(
    2481             'http://52.213.129.222/api/console/rebootInstance',
     2478            WPM2AWS_CONSOLE_API_URL . '/api/console/rebootInstance',
    24822479            array(
    2483 
    2484             'method' => 'POST',
    2485             'timeout' => 45,
    2486             'redirection' => 10,
    2487             'httpversion' => '1.0',
    2488             'blocking' => true,
    2489             'headers' => array(
    2490                 'Cache-Control' => 'no-cache',
    2491             ),
    2492             'body' => array( 'data' => $requestData ),
    2493             'cookies' => array(),
     2480                'method' => 'POST',
     2481                'timeout' => 45,
     2482                'redirection' => 10,
     2483                'httpversion' => '1.0',
     2484                'blocking' => true,
     2485                'headers' => array(
     2486                    'Cache-Control' => 'no-cache',
     2487                ),
     2488                'body' => array( 'data' => $requestData ),
     2489                'cookies' => array(),
    24942490            )
    24952491        );
     
    25792575
    25802576        // wp_die(print_r($instanceDetails));
    2581         // $response = wp_remote_post( 'http://localhost/wpm2aws-console-api/public/api/console/createSnapshot', array(