Try this rewrite rule

This commit is contained in:
decentral1se 2021-05-06 20:21:47 +02:00
parent 486da6d76f
commit 13f69fba07
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ server {
}
location / {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
try_files /dev/null @api;
}