This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker with SSL and an nginx reverse proxy | |
Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick. | |
Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the [Windows Terminal](https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701)). | |
# 1. Create a `conf` file with information about the cert you'll be creating | |
It should look something like the content below; call it `my-site.conf` or something like that. | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace FizzBuzzGame | |
{ | |
public class GameFizzBzz | |
{ | |
//lenght prop | |
public int Lenght { get; set; } | |
// By default lenght |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
def fahrenheit_to_celsius(): | |
"""Convert the value for Fahrenheit to Celsius and insert the | |
result into lbl_result. | |
""" | |
fahrenheit = ent_temperature.get() | |
celsius = (5/9) * (float(fahrenheit) - 32) | |
lbl_result["text"] = f"{round(celsius, 2)} \N{DEGREE CELSIUS}" |