diff --git a/conf/nginx.conf b/conf/nginx.conf index 7b78553..39e8392 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,11 @@ # lemmy_ui_port: 1235 # lemmy_port: 8536 + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + set $proxpass "http://127.0.0.1:__PORT_UI__"; if ($http_accept = "application/activity+json") { set $proxpass "http://127.0.0.1:__PORT_LEMMY__";