1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lemmy_ynh.git synced 2024-09-03 19:36:09 +02:00

Force https

This commit is contained in:
anmol26s 2021-02-22 00:19:27 +05:30
parent 42f4ff20ff
commit 7f3a3905ec

View file

@ -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__";