English version is the end of this topic (Thank you Google Translate )
Bonjour,
J’écris ce sujet pour ce qui voudrais que leur site redirige leur utilistateur http vers le https.
Rien de très compliqué.
Il suffit de modifier fichier traefik
vim ./docker-volume/traefik/traefik.toml
Ensuite rajouter c’est deux ligne.
[entryPoints.http.redirect]
entryPoint = "https"
traefik.toml avant la modification :
# Uncomment this line in order to enable debugging through logs
# debug = true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
CurvePreferences = [
"CurveP521",
"CurveP384",
"CurveP256"
]
Après la modification.
# Uncomment this line in order to enable debugging through logs
# debug = true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
CurvePreferences = [
"CurveP521",
"CurveP384",
"CurveP256"
]
Enregistrez et il ne reste plus qu’à relancer peertube et chaque fois que vous accédez à votre site avec un url http (exemple : monpeertube.com; http://monpeertube.com) vous serez automatique rediriger vers la version https (https://monpeertube.com)
Source : https://docs.traefik.io/user-guide/examples/
English version :
Hello,
I write this topic for who would like their site redirects their http user to the https.
Nothing very complicated.
Just edit traefik file
vim ./docker-volume/traefik/traefik.toml
Then add two lines.
traefik.toml before the change:
# Uncomment this line in order to enable debugging through logs
# debug = true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
CurvePreferences = [
"CurveP521",
"CurveP384",
"CurveP256"
]
After the change.
# Uncomment this line in order to enable debugging through logs
# debug = true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
CurvePreferences = [
"CurveP521",
"CurveP384",
"CurveP256"
]
Register and you just have to restart peertube and every time you access your site with an http url (example: monpeertube.com; http://monpeertube.com) you will be automatically redirected to the https version (https: //monpeertube.com)