Outside site in Bitrix24 box

This article will discuss how to add a third-party site in Bitrix24 box and what steps are required to configure nginx and apache. New site in Bitrix24 box Suppose we have a ready-made website that we would like to place on the Bitrix24 box and we want it to work in the same way as … Read more

Install Certbot on CentOS

Certbot is a Python client that automates both obtaining free certificates from Let’s Encrypt and configuring web servers to create a secure https connection using these certificates. As an example, we will look at installing Cerbot on CentOS, learn how to get a free certificate using it and automatically configure nginx / apache. Install Certbot … Read more

PHP encryption

Symmetric encryption Symmetric encryption is an encryption algorithm that uses the same cryptographic key to both encrypt and decrypt data. Let’s consider in PHP encryption of data using a symmetric method based on the AES (Advanced Encryption Standard) algorithm – a symmetric block encryption algorithm (block size 128 bits, key 128/192/256 bits). AES is one … Read more

Bitrix24 not work push

Problem with push server Error with padStart() function Replacing padStart function with simple code Problem with push server After installing 1C-Bitrix: The web environment of the boxed version of Bitrix24 not work push, notifications via the local server do not come (red line There is no connection to the server). In the Push and Pull … Read more

Bitrix24 behind proxy

Inputs data Configuration front-end server with nginx Configuration back-end server / bitrix Inputs data There was a need to place a boxed version of Bitrix24 behind proxy server on nginx. And so that we have: 192.168.88.20 – ip server with nginx, for which there is an A-record with the domain name bx24.corp. The server listens … Read more

Puppeteer generate PDF from HTML

In puppeteer generate pdf is possible using the special page.pdf() page method. This function generates a pdf document from html markup. Generating a pdf is currently only supported in Chrome headless! Generation pdf Save pdf Print media and screen media Display header, footer and page background Range pdf page Scale, sizes, landscape and margin pdf … Read more

Puppeteer timeout

Timeout sets the maximum timeout for a particular method or methods after which an error or exception will be thrown. Puppeteer timeout default Method setDefaultNavigationTimeout Method setDefaultTimeout Timeout property WaitUntil property Puppeteer timeout promise Puppeteer timeout default The default in puppeteer timeout is 30 seconds. To use custom timeouts, you can use the page.setDefaultNavigationTimeout () … Read more

Puppeteer use proxy

In puppeteer use proxy, as in Chrome, is carried out using the argument –proxy-server, which is specified when the browser starts: where server – domain name or ip-address proxy-server, port – port. Puppeteer use proxy Proxy protocols Proxy authentication Puppeteer use proxy Here is the full code where we demonstrate the use of proxy in … Read more