浏览代码

As index.html is actually static, have nginx serve it.

feature/qrgen
Daniel Perelman 10 个月前
父节点
当前提交
6300f20407
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. +4
    -3
      nginx-site.example
  2. +1
    -0
      wwwroot/index.html

+ 4
- 3
nginx-site.example 查看文件

@@ -18,10 +18,11 @@ server {

server_name _;

location / {
try_files $uri $uri/ @proxy_to_app;
location /camera/ {
alias /path/to/minimal-webrtc/wwwroot/;
try_files $uri $uri/ @minimal_webrtc;
}
location @proxy_to_app {
location @minimal_webrtc {
proxy_pass http://minimal-webrtc;

proxy_http_version 1.1;


+ 1
- 0
wwwroot/index.html 查看文件

@@ -0,0 +1 @@
../camera/templates/index.html

正在加载...
取消
保存