UNPKG

streamium

Version:

Decentralized trustless video streaming using bitcoin payment channels.

56 lines (41 loc) 942 B
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /home/ubuntu; index index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location ~ ^/testnet/config.js?$ { try_files $uri $uri/ =404; } location ~ ^/b/(?<stream>.+)$ { rewrite ^ /index.html last; } location ~ ^/s/(?<stream>.+)$ { rewrite ^ /index.html last; } location ~ ^/screen?$ { rewrite ^ /index.html last; } location ~ ^/tutorial-address/?$ { rewrite ^ /index.html last; } location / { try_files $uri $uri/ =404; } location ~ ^/t/config.js?$ { rewrite ^ /testnet/config.js last; } location ~ ^/t/s/(?<stream>.+)$ { rewrite ^ /testnet/index.html last; } location ~ ^/t/b/(?<stream>.+)$ { rewrite ^ /testnet/index.html last; } location ~ ^/t/screen/?$ { rewrite ^ /testnet/index.html last; } location ~ ^/t/?$ { rewrite ^ /testnet/index.html last; } }