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

Merge pull request #92 from YunoHost-Apps/add_redirection_to_https

Add redirection to https
This commit is contained in:
Éric Gaspar 2021-06-23 10:58:05 +02:00 committed by GitHub
commit d35431d9f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,9 @@
location __PATH__/ {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:__PORT__;
proxy_redirect off;
proxy_set_header Host $host;