Advertisement
Guest User

Untitled

a guest
Aug 30th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. server_name example.com;
  4.  
  5. ssl_certificate (Let's Encrypt で作成した example.com の HTTPS 用証明書へのパス);
  6. ssl_certificate_key (Let's Encrypt で作成した example.com の HTTPS 用暗号鍵へのパス);
  7.  
  8. location /tvrp/ {
  9. sub_filter_once off;
  10. sub_filter_types text/plain text/css text/xml application/json application/javascript;
  11.  
  12. sub_filter "http://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8000/" "https://example.com/tvrp/";
  13. sub_filter "https://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8100/" "https://example.com/tvrp/";
  14. sub_filter "/api/chromecast" "/tvrp/api/chromecast";
  15. sub_filter "/api/epgguide" "/tvrp/api/epgguide";
  16. sub_filter "/api/jkapi" "/tvrp/api/jkapi";
  17. sub_filter "/api/searchfile" "/tvrp/api/searchfile";
  18. sub_filter "/api/watchnow" "/tvrp/api/watchnow";
  19. sub_filter "/files/" "/tvrp/files/";
  20. sub_filter "/stream/" "/tvrp/stream/";
  21. sub_filter "/tweet/" "/tvrp/tweet/";
  22. sub_filter "/setting/" "/tvrp/setting/";
  23. sub_filter "/watch/" "/tvrp/watch/";
  24. sub_filter '"start_url": "/"' '"start_url": "/tvrp/"';
  25. sub_filter 'href="/"' 'href="/tvrp/"';
  26. sub_filter "URL='/'" "URL='/tvrp/'";
  27. sub_filter "/serviceWorker.js" "/tvrp/serviceWorker.js";
  28. sub_filter "/manifest.json" "/tvrp/manifest.json";
  29. sub_filter "/manifest.webmanifest" "/tvrp/manifest.webmanifest";
  30. sub_filter "Cookies.set('settings', json)" "Cookies.set('settings', json, {path: '/tvrp/'})";
  31.  
  32. proxy_cookie_path / /tvrp/;
  33. proxy_set_header Accept-Encoding "";
  34. proxy_pass http://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8000/;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement