Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Update SELF-HOSTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja authored Sep 26, 2020
1 parent 7e68b52 commit 4df81a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SELF-HOSTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ server {
location ~ (/videoplayback|/vi/|/a) {
proxy_buffering off;
resolver 1.1.1.1;
proxy_pass https://$arg_hostname;
proxy_set_header Host $arg_hostname;
proxy_pass https://$arg_host;
proxy_set_header Host $arg_host;
add_header Access-Control-Allow-Origin *;
}
}
Expand All @@ -202,7 +202,7 @@ Make sure to replace `<yourdomain>` by the domain you are willing to use for you
You will also need to change the `</path/to>` after `alias` to fit your system. You have to point to the Yotter folder, in this set up it would be `/home/ubuntu` as it is the location where we cloned the Yotter app. This alias is created to handle static files directly, without forwarding to the application.
Once done, you can run `sudo service nginx reload`
Once done, you can run `sudo service nginx reload`. If everything so far went OK, you can now set the `nginxVideoStream` to `true` on the `yotter-config.json` file.
Now you need to install an SSL certificate on your server so you can use HTTPS. If you are running Ubuntu 20LTS or already have `snap` installed, you can proceed as follows:
Expand Down

0 comments on commit 4df81a6

Please sign in to comment.