mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Force https
Every time this app is installed, the nginx file needs to edited to force the https. This should be there by default in the nginx config file.
This commit is contained in:
parent
5f1bee30dd
commit
3eaaaf665f
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
location __PATH__ {
|
||||
alias __FINALPATH__/www/;
|
||||
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
|
|
Loading…
Add table
Reference in a new issue