Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blocks:server:nginx [2025-09-15 12:14] – [Acquire Let's Encypt certificates using DNS-01 challenge] mattias | blocks:server:nginx [2025-09-17 06:41] (current) – [Using Local Wifi] mattias | ||
|---|---|---|---|
| Line 51: | Line 51: | ||
| Make sure to keep the space  after // | Make sure to keep the space  after // | ||
| - | Make sure you've set good, strong passwords on all your Blocks users. Finally, while still as the //root// user, run the following commands, pressing enter after each. The first of these commands checks your new nginx configuration for errors. Pay close attention to any error messages that may appear. | + | Make sure you've set good, strong passwords on all your Blocks users. | 
| + | Before thenext step, test if certbot has the potential to work by visiting [[https:// | ||
| < | < | ||
| Line 99: | Line 100: | ||
| - You must provide internet access to your visitors through your local wifi. This is required both to expedite the wifi connection (many phones will hesitate to connect to a wifi that doesn' | - You must provide internet access to your visitors through your local wifi. This is required both to expedite the wifi connection (many phones will hesitate to connect to a wifi that doesn' | ||
| - Your DNS entry must point to the IP address of your intranet Blocks server, now (hopefully) accessible through your wifi. That means that any attempts to access it from the internet will fail (since it's only available while on the in-house wifi). An " | - Your DNS entry must point to the IP address of your intranet Blocks server, now (hopefully) accessible through your wifi. That means that any attempts to access it from the internet will fail (since it's only available while on the in-house wifi). An " | ||
| - | - You can't use the automatic " | + | - You can't use the automatic " | 
| - | ====Acquire Let's Encypt certificates using DNS-01 challenge==== | ||
| - | This outlines the principle steps to set up automatic certificate renewals on an internal server. | ||
| - | For this to work the server must have internet access. Digital ocean will be used as example here but the same principles apply to many major dns providers.. | ||
| - | Make sure you have a blocks system that works over http before attempting to att secure content over https. | ||
| - | |||
| - | For DNS-01 challange to work on must use a DNS provider that has api access and a plugin that can make use of that api and work with the Let's Encypts cerbot. | ||
| - | |||
| - | ===Principle steps=== | ||
| - | |||
| - | Outline of the steps involved: | ||
| - | |||
| - | - | ||
| - | - | ||
| - | - | ||
| - | - | ||
| - | - Create a file to store the api token or secret. Typically stored in an .ini file under / | ||
| - | - make sure the necessary cert-bot plugin is installed. Follow the dns providers instructions. | ||
| - | - run the certbot | ||
| - | - Configure nginx to handle the incoming requests the way you want. | ||
| - | |||
| - | ===Example of using Digital Ocean as dns provider=== | ||
| - | -    At the domain name registrar, configure the domain to use Digital Oceans nameservers. | ||
| - | - | ||