Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Sure.

    I use it a lot, because I use WP for writing a lot of articles at the same time as switching between other technical things.

    When i’m writing or editing articles, I like more screen space, but don’t want the full screen options.

    When I’m doing admin or changing settings, I need the nav to move around.

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    #

    # PLAIN TEXT CONFIGURATION FILE - SANITIZED FOR SUPPORT

    #

    #It not set, will use host name as serverName

    serverName                

    httpdWorkers              2

    user                      [CENSORED]

    group                     [CENSORED]

    priority                  0

    autoRestart               1

    chrootPath                /

    enableChroot              0

    inMemBufSize              60M

    swappingDir               /tmp/lsws-rc/swap

    autoFix503                1

    gracefulRestartTimeout    300

    mime                      conf/mime.properties

    showVersionNumber         0

    adminEmails               [CENSORED]

    indexFiles                index.html, index.php

    disableWebAdmin           0

    enableLVE                 0

    autoLoadHtaccess          1

    useIpInProxyHeader        2

    listener http {

      address                 *:80

      secure                  0

      map                     default *

    }

    listener http6 {

      address                 [ANY]:80

      secure                  0

      map                     default *

    }

    listener https {

      address                 *:443

      secure                  1

      keyFile                 [CENSORED - SSL KEY PATH]

      certFile                [CENSORED - SSL CERT PATH]

      certChain               1

      sslProtocol             30

      map                     default *

    }

    listener https6 {

      address                 [ANY]:443

      secure                  1

      keyFile                 [CENSORED - SSL KEY PATH]

      certFile                [CENSORED - SSL CERT PATH]

      certChain               1

      sslProtocol             30

      map                     default *

    }

    errorlog logs/error.log {

      logLevel                DEBUG

      debugLevel              0

      rollingSize             10M

      enableStderrLog         1

    }

    accesslog logs/access.log {

      logReferer              1

      logUserAgent            1

      logFormat               %a %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"

      logHeaders              5

      rollingSize             10M

      keepDays                30

      compressArchive         0

    }

    expires  {

      enableExpires           1

      expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,text/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800

    }

    tuning  {

      maxConnections          10000

      maxSSLConnections       10000

      connTimeout             300

      maxKeepAliveReq         10000

      keepAliveTimeout        5

      sndBufSize              0

      rcvBufSize              0

      maxReqURLLen            32768

      maxReqHeaderSize        65536

      maxReqBodySize          2047M

      maxDynRespHeaderSize    32768

      maxDynRespSize          2047M

      maxCachedFileSize       4096

      totalInMemCacheSize     20M

      maxMMapFileSize         256K

      totalMMapCacheSize      40M

      useSendfile             1

      fileETag                28

      enableGzipCompress      1

      compressibleTypes       default

      enableDynGzipCompress   1

      gzipCompressLevel       6

      gzipAutoUpdateStatic    1

      gzipStaticCompressLevel 6

      brStaticCompressLevel   6

      gzipMaxFileSize         10M

      gzipMinFileSize         300

      quicEnable              1

      quicShmDir              /dev/shm

    }

    fileAccessControl  {

      followSymbolLink        1

      checkSymbolLink         0

      requiredPermissionMask  000

      restrictedPermissionMask 000

    }

    perClientConnLimit  {

      staticReqPerSec         0

      dynReqPerSec            0

      outBandwidth            0

      inBandwidth             0

      softLimit               10000

      hardLimit               10000

      gracePeriod             15

      banPeriod               300

    }

    CGIRLimit  {

      maxCGIInstances         20

      minUID                  11

      minGID                  10

      priority                0

      CPUSoftLimit            10

      CPUHardLimit            50

      memSoftLimit            1460M

      memHardLimit            1470M

      procSoftLimit           400

      procHardLimit           450

    }

    accessDenyDir  {

      dir                     /

      dir                     /etc/*

      dir                     /dev/*

      dir                     conf/*

      dir                     admin/conf/*

    }

    accessControl  {

      allow                   ALL, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/13T, 104.24.0.0/14T, 172.64.0.0/13T, 131.0.72.0/22T, 2400:cb00::/32T, 2606:4700::/32T, 2803:f800::/32T, 2405:b500::/32T, 2405:8100::/32T, 2a06:98c0::/29T, 2c0f:f248::/32T

    }

    module cache {

      ls_enabled              1

      checkPrivateCache       1

      checkPublicCache        1

      maxCacheObjSize         10000000

      maxStaleAge             200

      qsCache                 1

      reqCookieCache          1

      respCookieCache         1

      ignoreReqCacheCtrl      1

      ignoreRespCacheCtrl     0

      enableCache             0

      expireInSeconds         3600

      enablePrivateCache      0

      privateExpireInSeconds  3600

    }

    include /etc/lsws-rc/default.d/*.conf

    include /etc/lsws-rc/conf.d/*.conf
    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    I’ve added it to httpd_config.conf under the line autoLoadHtaccess

    The accessControl list is also in that file, under accessDenyDir

    Bearing in mind I am using runcloud’s deployment. I followed this guide and everything looks correct: https://runcloud.io/docs/real-ip-openlitespeed-behind-cloudflare

    https://imgur.com/a/yotaZ23

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Noice.

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Hope this helps 🙂

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Hi, is there any update to this?

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Also, when deactivating the plugin and asked for feedback, the Skip button doesn’t skip past giving feedback and de-activate.

    This means users HAVE to give their info when de-activating, which violates WordPress policies and the GDPR.

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    This works but I don’t want to click to remove it once every 7 days. I don’t need the stats, and if I do you could let me toggle them on or off in settings.

    Otherwise, this is essentially just an ad for possibly upgrading.

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Seems to have worked now, thanks for fixing the issues 🙂

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    @abhiladdha07

    Card is an ACF endpoint for a custom post type card, which has custom fields attached. Both are exposed to the API.

    Reverting does fix the issue. Tested with the latest and previous versions of ACF.

    ACF fields are stored as a subfield in post meta fields I believe. https://www.advancedcustomfields.com/resources/wp-rest-api-integration/

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

     # Upload the image

        try:

            image_response = requests.post(media_endpoint, headers=image_headers, data=image_data, verify=verify_ssl)

            image_response.raise_for_status()

            image_id = image_response.json()['id']

            if verbose:

                print(f"Image uploaded successfully for {card_info['card_title']}. Image ID: {image_id}")

            # Set the uploaded image as the featured image of the post

            post_update_data = {

                'featured_media': image_id

            }

            try:

                update_response = requests.post(f"{card_endpoint}/{card_info['post_id']}", headers=headers, json=post_update_data, verify=verify_ssl)

                update_response.raise_for_status()

                if verbose:

                    print(f"Image set as featured for {card_info['card_title']} with ID {image_id} for post ID {card_info['post_id']}.")

            except requests.exceptions.HTTPError as http_err:

                if update_response.status_code == 403:

                    print("Permission denied. You are not allowed to use this endpoint or the provided data is not allowed.")

                elif update_response.status_code == 404:

                    print("Endpoint not found. Please check the URL.")

                else:

                    print(f"HTTP error occurred while setting featured image: {http_err}")

            except requests.exceptions.ConnectionError:

                print("Connection error while setting featured image. Check your internet connection and WordPress URL.")

            except requests.exceptions.Timeout:

                print("Request timed out while setting featured image. The server might be slow or unresponsive.")

            except requests.exceptions.RequestException as err:

                print(f"An error occurred while setting featured image: {err}")

    Some example code. This is after checking and verifying I can get tokens, and they are up to date.

    In this case i’m seeing the errors below: –

    HTTP error occurred while setting featured image: 401 Client Error: Unauthorized for url: https://mysite.com/wp-json/wp/v2/card/12767
    HTTP error occurred: 401 Client Error: Unauthorized for url: https://mysite.com/wp-json/wp/v2/media/12768

    which indicate we can access the site and upload images, but a 401 error is coming back while trying to set the featured image. i’ve checked with various other test scripts and i’m able to authenticate fine.

    • This reply was modified 1 year, 7 months ago by outdoorsdev1.
    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Thanks!

    Forum: Plugins
    In reply to: [Simplelightbox] Legacy
    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    No, I was saying that the legacy script always loads – even if I haven’t selected to use the legacy version. If I force the legacy script not to load on a page/post, lightbox doesn’t seem to work at all.

    Forum: Plugins
    In reply to: [Simplelightbox] Legacy
    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    If I deload the legacy script, the whole plugin seems to not work. I’m on the latest firefox

    Thread Starter outdoorsdev1

    (@outdoorsdev1)

    Thanks!

    This worked for me, the immediate last version is fine.

    Additionally as a seperate issue the simple-lightbox.legacy.min.js file is loading instead of the standard js script, even though I don’t have legacy selected in the options.

Viewing 15 replies - 1 through 15 (of 39 total)