Sites
The site's identifier can be copied with the button in the site's row of the sites list
Trial period and Payments
Trial period
When creating the first site, the user can activate a trial period. This period is available for 5 days, and the following limits apply during it:
Maximum number of pages - 5
Maximum number of templates - 1
Maximum number of objects - 50
Maximum number of custom structure fields - 10
Maximum number of lists of each setting (search, filters, sorting, limits per page) - 2. The number of items in a list is not limited
Maximum number of additional site languages - 1
Maximum number of site domains - 2
During the trial period, it can be ended with the corresponding button in the cabinet
After the trial period ends, an invoice is issued that contains only the price of the site, not including the price of the used server resources
Payment
After the invoice is issued, during the next 5 days the service tries to charge the funds automatically. If all attempts fail, access to the site is blocked
When a site, for any reason, has an unpaid invoice, it can be paid manually with the corresponding button in the cabinet
Server usage
After the trial period ends, the amount of used server resources is calculated every hour. When the payment is issued, the sum of all hours since the last payment is calculated and added to the total payment amount
Secure mode
Secure mode is needed to provide additional security for templates and data. To enable secure mode, go to the site editing in the cabinet and activate the "Secure mode" switch - a value for "LURAZON_SECRET" is generated, which must be copied or downloaded right away: for security reasons it is shown only once. Every repeated generation immediately invalidates the previous value. If secure mode is enabled, the two following settings must be set up for all templates and domains:
Generation token
When declaring the tag in which the template is generated, an additional attribute "data-lurazon-token" must be added, which contains a JWT encoded with the "HS256" algorithm
The dictionary encoded in the JWT must contain the keys: "type" with the value "setup" and "site" with the value of the site's identifier. The token's expiration ("exp") is required and must be no more than 3600 seconds ahead, otherwise the token is rejected. We recommend about 15 seconds
API token
This setting must be set up only when the value "No" is selected for the "Custom API" field in the template
A POST endpoint "/lurazon/template/token" must be created on the domain where the template is generated, returning a JWT encoded with the "HS256" algorithm, for verifying and granting access while the template works. This token must contain the keys: "type" with the value "refresh" and "site" with the value of the site's identifier. The token's expiration ("exp") is required and must be no more than 3600 seconds ahead, otherwise the token is rejected. We recommend about 15 seconds. The template calls this endpoint itself, from the visitor's browser (a POST with an empty JSON body and the site's own cookies), whenever its access runs out. The response must be of the "text" type, not JSON: the status 200 and the token itself in the body
Domains
The site's domains are used for verification during template generation, they are needed for minimal protection of data. Domains of the following formats are available to add: example.com, sub.example.com, localhost:3000, 127.0.0.1:8080
Languages
The added languages make it possible to add translations for: text fields in objects, content in templates and in the site structure. The default translation is always available, so if the site uses only one language, this field does not need to be filled, if two or more - we recommend adding only the languages that are not the main one
The page's language code (the "data-lurazon-lang" attribute or the "lang" attribute of the root "html" tag, see the Template render section) is matched against the identifiers of the added languages. If a match is found - search and sorting work with the corresponding translation, if not - with the default translation. So nothing extra needs to be set for the site's main language
Users
The "Users" field - the list of emails of the users who must be granted access to edit the site (up to 20 users per site). Each email must belong to a registered account with a confirmed email. Adding users is available after the site's trial period ends
After saving, emails with a membership confirmation link are sent to the added emails. The links are valid for 24 hours, they can be sent again from the users list. Removing an email from the list revokes access immediately
A user has access to the "Structure", "Templates" and "Objects" sections. The site settings, payment and deleting the site are available to the owner only