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:
parent
42f4ff20ff
commit
7f3a3905ec
1 changed files with 5 additions and 0 deletions
|
@ -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__";
|
||||
|
|
Loading…
Add table
Reference in a new issue