Duplicate prefab name

Issue

Error message about duplicate prefab name during game loading

Cause

If autosave is enabled in the asset editor, and you open an existing asset to create a new one based on it, autosave can save the work-in-progress asset as an autosave file. When you load the next game you may get the error message:

An error occurred
Broken asstes:
Custom assets:
…_Data:
Duplicate prefab name [BrokenAssetException]

Solution

Delete the AutoSave.crp file from the “C:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\Addons\Assets” directory.

Error building assembly … cannot find metadata file in Cities: Skylines

Issue

Errors building assembly c:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\MY_MIX_NAME
(0,0): error CS0006: cannot find metadata flie ‘…steamapps\common\Cities_Skylines\Cities_Data\Managed’
(0,0): error CS0006: cannot find metadata flie ‘…steamapps\common\Cities_Skylines\Cities_Data\Managed’

Cause

The Theme Mixer 2 causes this error if you try to export a mix.

Even if you uninstall the mod, every time the game starts, the message appears in the Debug Output.

Solution

Delete the MY_MIX_NAME directory you find in the “C:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods” folder

Cities: Skylines notes

As I use Cities: Skylines I want to share tips and tricks I learn while I build my maps and cities.

The game scale

Game elementReal life size
1 cell8 meters
1 tile240 cells = 1920 meters
9 tiles17,280 meters
Zoning grid depth4 cells = 32 meters
Curb30 cm high, as roads are sunken into the terrain.
Basic road2 cells = 16 meters wide
Asphalt 10 meters wide
Vehicle lane 3 meters wide
Parking lane 2 meters wide
Four-lane road4 cells = 32 meters wide
Asphalt width including the median 22.4 meters
Asphalt width on each side of the median 8 meters
Median width 6.4 meters
Vehicle lane width 3 meters
Parking lane width 2 meters
Highway rampWidth 12 meters
Asphalt width 8 meters
Lane width 4 meters
3 lane highwayWidth 22 meters
Asphalt width 18 meters
Lane width 4 meters
Train tracksGauge 1.6046 meters
Distance between rail centers 1.724meters
Rail width 11.94 cm
Distance between the centers of 2 parallel tracks 4 meters
Tram tracksSame as train, but the distance between the centers of two parallel tracks is 3 meters
MonorailTrack width 66 cm
Distance between the centers of two parallel tracks is 3 meters.

Elevations

The Cities: Skylines game use multiple units to display elevations and distances.

ToolUnitRelative to
Landscaping toolmetersLowest elevation (0 meters)
Roads toolRoad segment length 1 unit = 8 metersRoad segment start
Fine Road Tool modmeter
Precision engineering modmeterLowest elevation (0 meters)
  • The Landscaping tool’s Level Terrain feature shows the elevation in units, relative to elevation 0. The original ground level is at 60 unit elevation.
  • The Roads tool displays the road segment lengths in units. 1 unit is 8 meters.
  • On the Options page of Klyte’s Fine Road Tool mod set the units to metric or imperial units.
  • The Precision Engineering mod shows the road segment length and elevation in meters relative to the original ground level of 60 units. Press the Shift key to see this extra information.

Minimum clearances

AboveBridge height
Cruise ships32-33 m
Ferries12 m
Railroad, roads12 m

Water

Water sources in games

In the map editor, you can add water sources to your maps. In game mode, the original game does not have the means to add more water sources. Subscribe to BoodyPinguin’s Extra Landscaping Tools mod to add water sources in your games.

Sea level

In the map editor you can set the sea level by typing a number, the mod in the city only uses the mouse to drag the sea level up and down. To set the level more precisely

  • Use the Landscaping Tool’s Level Terrain feature to create a small flat top island in the sea.
  • Select the Water tool, and select the Move Sea Level option.
  • Move the mouse up and down to set the water level to the top of the island.

Containing waste water pollution

When you discharge waste water to lakes and the sea, it can pollute the drinking water supply. Place a water source with the water level lower than the lake or sea level. It creates a drain to generate a current and remove the pollution.

Traffic

If the traffic is too dense, turn on vehicle despanning. When the vehicles arrive to their destination they disappear.

  • Subscribe and activate the TM:PE (Traffic Manager: President Edition ) mod
  • On the top of the screen click the TM:PE Main menu button (looks like a traffic light)
  • In the upper right corner of the window click the Toggle automatic vehicle despawning button to turn on despawning.

The Los Angeles 1947 Pacific Electric Railway in Cities: Skylines

I wanted to recreate the Los Angeles Pacific Electric Railway system based on the 1947 system map in Cities: Skylines. Los Angeles at the beginning of the 20th century had hundreds of miles of electric street cars connecting downtown LA with the surrounding cities.

I have found the high-definition PDF version of the Pacific Electric Railway system map at https://www.pacificelectric.org/pacific-electric/maps/1947-pacific-electric-system-map/

The website contains lots of great pictures, maps, and other information on the Pacific Electric and Los Angeles railway systems.

The links below contain the system map in PDF and PNG formats.

I have created a Cities: Skylines map based on the PDF file and shared it on the Steam Workshop:

NameURLNotes
Los Angeles 1947 v 07https://steamcommunity.com/workshop/filedetails/?id=2858871489First published version

You can use the PNG file as an overlay to easily transfer the road and train layout to your city. For instructions see Transfer streets to your city in Cities: Skylines using a PNG image file

The map uses the 81 tiles mod by BloodyPenguin. The current version as of writing is “81 Tiles (Fixed for 1.2+)” at https://steamcommunity.com/workshop/filedetails/?id=2858871489

You need this mod installed and activated to be able to work with the map. See Work with an 81-tile city in Cities: Skylines for instructions on how to use the mod.

The map also contains Santa Catalina Island in approximate position and shape. If you want to build Avalon, you need to do some terraforming to make room for the casino, the harbor, and the rest of the city. I have not added any sandy beaches on the main land and the island, it is a fun project to recreate them with the terraforming tool. The reservoirs and rivers don’t have water sources to avoid flooding if you block any of the rivers during construction. If you want to get water from them, use Boody Pinguin’s Extra Landscaping Tools mod to add water sources.

Historic Vehicles

Get historic vehicles

Subscribe to -Historic/Veteran Vehicles- No’s all in one at https://steamcommunity.com/sharedfiles/filedetails/?id=495877905

Disable the default (modern) vehicles

Follow the instructions at https://steamcommunity.com/sharedfiles/filedetails/?id=453245152

  • Install the Advanced Vehicle Options mod from
  • In the Content Manager activate the mod
  • Start the game
  • In the lower right corner click the Advanced Vehicle Options button
  • For each vehicle set the Allow this vehicle to spawn checkbox.
  • Export the vehicle configuration if you want to be able to import it into other cities. It will be saved at C:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\AdvancedVehicleOptions_VehicleData.xml

Transfer streets to your city in Cities: Skylines using a PNG image file

To transfer real life places to Cities: skylines you can use the Image Overlay 2 mod. It superimposes the selected PNG file over your layout with configurable position, rotation and transparency. See Cities: Skylines mods for more information.

Map editor

To create a map of a real life navigate to Cities: Skylines online heightmap generator to download the

  • Map image
  • Height map

To create a map using a height map in Cities: Skylines:

  • 1. Choose a height map from a trusted source or create your own using a software like Photoshop or GIMP. The height map should be a grayscale image and must have a resolution of 1081×1081 pixels.
  • 2. Open Cities: Skylines and click on “New Game” and then select “Map Editor.”
  • 3. Click on “Import Heightmap” and select the grayscale image you want to use for your map.
  • 4. Adjust the settings for sea level, water flow, and terrain height to your liking.
  • 5. Add resources and adjust the terrain using the terrain tools.
  • 6. Add roads, buildings, and other assets to your map.
  • 7. Test your map by clicking on “Play” and selecting the “Map” tab.
  • 8. Save your map and share it with other Cities: Skylines players online.

Remember that creating a map using a heightmap can be time consuming and requires patience and attention to detail. But the result can be a beautifully crafted and realistic city that you can be proud of.

Configure Cities: Skylines to use the PNG file as an overlay

  • Create a PNG file of the street layout
    • To convert a PDF file to PNG, use the free PDF to PNG converter at https://pdf2png.com/
  • Save the PNG file in the “C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Files” directory where your Steam games are on your hard drive
  • Install the Image Overlay 2 mod
  • Configure the mod to read the image files from the directory where the image file is

To display the overlay

  • Open the city
  • Press Shift + Enter to display and hide the overlay

Troubleshooting

  • In the old version if the image does not move, press Shift + V to unlock the image. It looks like the new version does not lock the image anymore.

Work with an 81-tile city in Cities: Skylines

When you start a new city in Cities: Skylines even if you have the 81 tiles mod installed, the map only shows one tile. To unlock all tiles

Before opening the city

  • Install the 81 tiles mod

Start a new city

  • Press ESC to open the menu
  • Select Options
  • In the Mods settings section click the 81 tiles item
  • Click the Unlock all tiles for free button

Important

When the 81 tiles mod is installed, it is very important to exit to the Desktop every time you switch between cities or editors, otherwise, you will get errors in the game. Always select Quit game to Desktop. Returning to the Desktop clears the memory for a fresh start for the next session.

A Legjobb Pizza Tészta recept

Posted byLaszlo Pinter  Leave a commenton The Best Pizza Dough recipe EditThe Best Pizza Dough recipe

Elegendő 2 nagy pizzához.

Hozzávalók

2 vékony nagy, vagy 1 vastag nagy pizzához

  • 175 ml (3/4 bögre) langyos (40-43 °C) víz ( körülbelül 20 másodpercig melegítsük a mikróban )
  • 1/2 teáskanál cukor
  • 1-1/8 teáskanál por élesztő ( 1/2 csomag )
  • 250 g (2 bögre) finomliszt
  • 1/2 teáskanál só
  • 40 ml (1/6 bögre) oliva olaj

2 vastag nagy pizzához

  • 350 ml (1-1/2 bögre) langyos (40-43 °C) víz ( körülbelül 30 másodpercig melegítsük a mikróban )
  • 1 teáskanál cukor
  • 2-1/4 teáskanál por élesztő ( 1 csomag )
  • 500 g (4 bögre) finomliszt
  • 1 teáskanál só
  • 80 ml (1/3 bögre) oliva olaj

Elkészítés

  1. Keverjük össze a langyos vizet, cukrot és élesztőt egy kicsi edényben. Várjunk 10 percet, vagy amíg felhabzik.
  2. A dagasztógép edényében 3-5 percig keverjük össze a lisztet, sót, oliva olajat és az élesztő keveréket a dagasztó hurokkal. A tészta kész, amikor lágy és rugalmas, és tisztán lejön az edéy faláról.
  3. Ha vékony pizzát készítünk, kelesztés nélkül azonnal dolgozhatunk vele.
  4. Ha vastag pizzát készítünk, vagy aznap később akarunk pizzát készíteni, formázzunk gömböt a tésztából és tegyük egy kiolajozott edénybe. Olajozzuk be a tésszta gömböt is és takarjuk le az edényt fóliával vagy fedéllel.
  5. Ha vastag pizzát készítünk, kelesszük 30 percig, vagy tegyük be a hőtőbe amíg dolgozni kezdünk vele.
  6. Ha nem akarunk aznap pizzát sütni, fagyasszuk le a a tésztát.

Baking

  • Melegítsük elő a sütőt a legmagasabb lehetséges hőmérsékletre.
  • Ha 290 °C-on sütünk, a pizza 8 – 10 perc alatt elkészül.

The Best Pizza Dough recipe

Ingredients

For 1 large thick, or 2 large thin crust pizzas

  • 3/4 cup (6 fl oz) warm (105-110 °F) water ( around 20 seconds in the microwave )
  • 1/2 teaspoon sugar
  • 1-1/8 teaspoon active dry yeast ( 1/2 package )
  • 2 cups all-purpose flour
  • 1/2 teaspoon salt
  • 1/6 cup (1.3 fl oz) olive oil

For 2 large thick crust pizzas

  • 1-1/2 cup (12 fl oz) warm (105-110 °F) water ( around 30 seconds in the microwave )
  • 1 teaspoon sugar
  • 2-1/4 teaspoon active dry yeast ( 1 package )
  • 4 cups all-purpose flour
  • 1 teaspoon salt
  • 1/3 cup (2.7 fl oz) olive oil

Instructions

  1. In a small bowl whisk the water, sugar, and yeast together, Let it sit for about 10 minutes or until it froths up.
  2. In the bowl of the mixer mix together the flour, salt, olive oil, and yeast mixture with the dough hook for about 3-5 minutes or until the dough is soft and elastic. It is done when it comes clean down from the side.
  3. To make thin crust pizza, use the dough without proofing.
  4. For thick crust pizza, or to use it later the same day, shape the dough into a ball and put it into an oiled bowl. Also, rub the dough with oil and cover it with a foil wrap or a lid.
  5. For thick crust pizza proof it for 30 minutes.
  6. To use it on another day freeze the dough.

Baking

  • Preheat the oven to the highest temperature it can provide.
  • If we bake on 550 °F, the pizza is done in 8 – 10 minutes.

Migrate an existing WordPress site to AWS Lightsail

If your WordPress site is already hosted at another provider you may be able to save money if you manage it yourself in AWS Lightsail.

Create the WordPress Lightsail instance

To migrate your existing site to AWS Lightsail, first create a WordPress Lightsail instance. See Host WordPress in AWS Lightsail

Migrate an existing site to a Lightsail WordPress instance

Export your old WordPress site

  • Log into you old WordPress site
  • Install the All-in-One WP Migration plugin to export the existing WordPress site.

    Warning: This plugin can only import sites for free under 80 MB size. If your blog export file is larger, you need to buy the “All-in-One WP Migration Unlimited” plugin for $69.
  • Using the plugin export the old WordPress site. In the WordPress Dashboard select Plugins, All-in-One WP Migration, Export
  • Click Export to to select the export location
  • Select File as the export location. Other methods require you to pay additional fees to the plugin creators.
  • The export will start automatically
  • When the export process completed, download the export file
  • Close the browser window of the old site, and do not make any more modifications in the old WordPress blog.

Import the WordPress site into the new hosting location

Import the site into the new instance
  • Log into your new WordPress blog with the temporary credentials described at “Log into your WordPress blog” on Host WordPress in AWS Lightsail
  • Update the new WordPress instance to the version of your existing blog
  • Install and activate the All-in-One WP Migration plugin to import the existing WordPress site into the new location.
  • In the Dashboard select Plugins, All-in-One WP Migration, Import
  • The free plugin imports maximum 80 GB export files. If your site is larger, you need to purchase the “Unlimited” plugin. The price at the time of writing is $69.
    • Once you installed and activated the “Unlimited” plugin, start the import again.
  • Select the File option
  • If you have selected a too small instance you get the error message

    There is not enough space available on the disk. Free up … GB of disk space.
    • In this case migrate your Lightsail instance to a larger type.
  • The import will display a few message boxes
  • Once the file has been uploaded to the instance the plugin is ready to for the modification. If you are really sure you want to overwrite the target WordPress installation, click Proceed to continue.
  • The actual update starts
    • When the update completed this message appears. If you are planing to change the domain name of the site slick the Save permalinks structure link.
  • Close the message with the FINISH button

Until the domain name and SSL certificate pointed to the new site

Update your “hosts” file

Permalinks in your WordPress blog contain the domain name of your site. To be able to test the new site until you point your domain to it, you can instruct your computer to use the public IP of the new site when you enter the domain name into the browser.

  • Open the /etc/hosts file in a text editor
  • Add this line and save the file:
PUBLIC_IP MY-BLOG.COM

Navigate to specific pages, not to the landing page

Open you site browsing to a specific page without using “https” in the URL to force the site to use the “http” protocol, ( MY-BLOG.COM/wp-admin/ or MY-BLOG.COM/archives/1). If you browse to the domain name only, ( MY-BLOG.COM ) the site will redirect you to the “https” protocol, the browser will constantly display warning messages, the page save and image upload will not work.

Your connection is not private

Attackers might be trying to steal your information from MY-BLOG.COM (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_AUTHORITY_INVALID

Once your domain has been pointed to the new LightSail instance

Update the links in the database

Replace the http://IP_ADDRESS with https://YOUR_DOMAIN

  • SSH into the LightSail instance as described above
  • Open the /opt/bitnami/wordpress/wp-config.php file
    cd /opt/bitnami/wordpress
    nano wp-config.php
  • Replace
    define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
    define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
    with
    define('WP_HOME', 'https://MY_DOMAIN/');
    define('WP_SITEURL', 'https://MY_DOMAIN/');
  • Save the file

Update the links in the database

Even after changing the config file some of the links in the database still contain the IP address used during the migration.

Based on https://docs.bitnami.com/aws/how-to/get-started-wordpress-aws-marketplace-intermediate/

We need to update the database directly.

Set up an SSH tunnel to be able to use the phpMyAdmin MYSQL client installed on the LightSail instance

  • We will open an SSH tunnel from our workstation to the LightSail host
  • Redirect our workstation’s localhost:8888 to port 80 on the LightSail instance
  • Using the browser on our workstation we will use phpMyAdmin installed on the LightSail instance to update the database
On Macintosh
Use the bundled SSH client to connect to the instance
  • Open a new terminal window
  • Set the permission of the downloaded private key to 600
    chmod 600 KEYFILE.pem
  • To connect to the server via SSH and administer it using your terminal
    • In the terminal execute
      ssh -i KEYFILE.pem bitnami@SERVER-IP
    • Your terminal will ask you if you trust the server, answer yes
      Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  • To redirect localhost:8888 on your workstation to port 80 on the LightSail instance and use phpMyAdmin installed on the LightSail instance
    • Open a new terminal window and execute
      ssh -N -L 8888:127.0.0.1:80 -i KEYFILE.pem bitnami@SERVER-IP
    • Keep this terminal open for the duration of the redirection.
On Windows
Use Putty to connect to the instance
  • Generate a Putty key from the pem file
    • Load the .pem private key
      • Download the LightSail private key on the Connect tab of your LightSail instance page
      • Start the C:\Program Files\PuTTY\puttygen.exe aplication
      • Click the Load button and open the downloaded private .pem key
      • Select All files (*.*)
      • Select the file
    • Save the private key
      • Click OK in the dialog
      • Click the Save Private Key button
      • Click Yes to save the key without a passcode
Open a secure SSH connection to the LightSail instance
  • Start the Putty application
  • Enter the domain name and connection name
  • On the Connection, SSH, Auth page select the saved private key
  • On the Connection, Data page enter bitnami as the user name
  • On the Session page click the Save button
  • Click the Open button to start an SSH connection
  • Click Accept to add the server to the list of trusted hosts
Open an SSH tunnel to use the MYSQL web interface
  • Open Putty
  • On the Connection, SSH, Tunnels page enter 8888 to the Source port, localhost:80 to Destination, and click the Add button
  • Save the configuration. On the Session page select the session name and click the Save button
Start a new connection
  • On the Session page select the session name and click the Load button
  • Click the Open button


Open the phpMyadmin page

  • Get the database credentials from the /opt/bitnami/wordpress/wp-config.php file on your LightSail instance
    • Get the user name from: define( ‘DB_USER’, ‘…..’ );
    • Get the password from: define( ‘DB_PASSWORD’, ‘….’ );

Update the WordPress database

  • Select the bitnami_wordpress database on the left side. In the wp_options table you can see the current configuration settings for ‘siteurl’ and ‘home’
  • On the top select the SQL tab, and enter the query below. Replace THE_OLD_URL and THE_NEW_URL with the actual values of your site. Make sure to set the correct “http” or”https” values for the old and new addresses.

set @old_url = 'http://THE_OLD_URL';
set @new_url = 'http://THE_NEW_URL';
UPDATE wp_options SET option_value = replace(option_value, @old_url, @new_url) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @old_url, @new_url);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @old_url, @new_url);
UPDATE wp_usermeta SET meta_value = replace(meta_value, @old_url, @new_url);
UPDATE wp_links SET link_url = replace(link_url, @old_url, @new_url);
UPDATE wp_comments SET comment_content = replace(comment_content, @old_url, @new_url);
UPDATE wp_posts SET post_content = replace(post_content, @old_url, @new_ur);
UPDATE wp_links SET link_image = replace(link_image, @old_url, @new_ur);
UPDATE wp_posts SET guid = replace(guid, @old_url, @new_url);

  • Click the Go button
Check the changes
  • To check the database changes execute the query
    select * from bitnami_wordpress.wp_options where option_name = 'siteurl' or option_name = 'home';

Host WordPress in AWS Lightsail

If you are just starting your WordPress blog, or you already have a site hosted somewhere AWS Lightsail provides a cost effective hosting solution.

To create a WordPress site in AWS Lightsail

Create a Lightsail instance

  • Log into your AWS account
  • Navigate to the Lightsail service
  • Set the instance location bu clicking on the Change AWS Region and Availability Zone
  • Select the Linux operating system (Linux has many application blueprints)
  • Select WordPress
  • Enable automatic snapshots to create daily backups
  • We will start with the smallest instance plan, it that serves the site well there is no reason to pay more for it.
  • Enter a unique name for this instance
  • If you want to keep track of project costs in your AWS account you can tag the instance with the project name in key-value tag
  • Click the Create instance button

Check the new WordPress site

  • You can test the WordPress site with your browser at the IP address shown on the page. For now just check if the site is running, we will log in once we created a static IP address below.

Create a static IP address

The IP address is your instance’s unique identifier on the internet. Behind the scene in the internet everything is addressed by IP addresses. Your domain name points there, and you can use it to connect to your instance. Lightsail instances have public IP addresses, but if you restart you instance it will change, so your site will be inaccessible to your visitors until you manually point your domain name to the new IP address. Statis IP addresses are free if those are connected to Lightsail instances, so there is no reason to not to create one.

  • On the Networking tab of your Lightsail instance click the Create static IP link
  • Enter a unique name for the static IP address
  • Click the Create button
  • Your site’s static IP address has been created

Log into your WordPress site

Get the temporary default password

To find the temporary default password we need to connect to the Lightsail instance

  • In the AWS console navigate to the Lightsail home page at https://lightsail.aws.amazon.com/ls/webapp/home/instances
  • On the Instances tab click the instance name
  • Connect to your Lightsail instance using a browser based SSH client by clicking the Connect using SSH button
    • or if you want to use your workstation’s terminal or any other SSH client, save the SSH key created by Lightsail in the ~/.ssh directory on your workstation. Click the Download default key link.
  • Execute this command in the SSH connection to get the temporary password
cat $HOME/bitnami_application_password

Log into your WordPress blog

  • Using your browser navigate to the login page using the public IP of your site MY_PUBLIC_IP/wp-login.php
  • Enter user as the user name, and the password copied from the terminal

Migrate your existing WordPress blog to the new Lightsail instance

If you have an existing WordPress blog at another hosting provider see Migrate an existing WorPress site to AWS Lightsail to move it to this new Lightsail instance.

Point your domain name to the new Lightsail instance

Once you set up your site, point your domain name to the new Lightsail instance.

  • Create an A (address) DNS record at your domain registrar to point your domain to the public IP address of your site.
  • Also create a CNAME record to redirect www. traffic to your domain.

After making DNS changes wait at least 30 minutes for the global propagation to the Lightsail instance.

Fix the permalinks

Once the domain is pointed to the WordPress site update the permalinks to include the domain name in the database entries.

  • Log into your WordPress blog’s dashboard
  • In the Settings menu select Permalinks
  • At the bottom click the Save Changes button
  • The confirmation message should appear on the top of the page

Set up a Let’s Encrypt SSL certificate

Secure the connectivity to your site with an SSL certificate. Let’s Encrypt provides free SSL certificates with auto renewal service, so you will never have to manage or pay for your SSL site certificate anymore.

If the Lightsail instance is directly exposed to the internet

If you don’t use load balancer, NGINX proxy or CDN (AWS Cloudfront) the Bitnami configuration script can create a Let’s Encrypt certificate and create a cron job for monthly automatic renewal.

  • Connect your Lightsail instance via an SSH connection described above
  • Execute the command
sudo /opt/bitnami/bncert-tool
  • Domains
    Please provide a valid space-separated list of domains for which you wish to
    configure your web server
    .
    • Enter the domain name of your site
  • The following domains were not included: www.MY-BLOG.COM. Do you want to add them? [Y/n]:
    • Answer Y
  • Enable/disable redirections
    Please select the redirections you wish to enable or disable on your Bitnami
    installation.
    Enable HTTP to HTTPS redirection [Y/n]:
    • Answer Y
  • Enable non-www to www redirection [Y/n]:
    • Answer N
  • Enable www to non-www redirection [y/N]:
    • Answer Y
  • The utility will list the pending changes.
    Do you agree to these changes? [Y/n]:
    • Answer Y to start the update process.

For more information see https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

If you use a CDN, load balancer or NGINX proxy

If you use a CDN network (AWS CloudFront) for content caching and delivery, you need to use the Alternative Approach to set up the Let’s Encrypt SSL certificate.

Our WordPress Lightsail instance uses the Approach A: Using system packages. configuration. (to check this, execute the command in the SSH terminal of your Lightsail instance:

test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

Follow the instructions below to set up the SSL certificate.

https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/#alternative-approach:~:text=for%20the%20website.-,Alternative%20Approach,-NOTE%3A%20We%20are