Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- server_name example.com;
- ssl_certificate (Let's Encrypt で作成した example.com の HTTPS 用証明書へのパス);
- ssl_certificate_key (Let's Encrypt で作成した example.com の HTTPS 用暗号鍵へのパス);
- location /tvrp/ {
- sub_filter_once off;
- sub_filter_types text/plain text/css text/xml application/json application/javascript;
- sub_filter "http://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8000/" "https://example.com/tvrp/";
- sub_filter "https://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8100/" "https://example.com/tvrp/";
- sub_filter "/api/chromecast" "/tvrp/api/chromecast";
- sub_filter "/api/epgguide" "/tvrp/api/epgguide";
- sub_filter "/api/jkapi" "/tvrp/api/jkapi";
- sub_filter "/api/searchfile" "/tvrp/api/searchfile";
- sub_filter "/api/watchnow" "/tvrp/api/watchnow";
- sub_filter "/files/" "/tvrp/files/";
- sub_filter "/stream/" "/tvrp/stream/";
- sub_filter "/tweet/" "/tvrp/tweet/";
- sub_filter "/setting/" "/tvrp/setting/";
- sub_filter "/watch/" "/tvrp/watch/";
- sub_filter '"start_url": "/"' '"start_url": "/tvrp/"';
- sub_filter 'href="/"' 'href="/tvrp/"';
- sub_filter "URL='/'" "URL='/tvrp/'";
- sub_filter "/serviceWorker.js" "/tvrp/serviceWorker.js";
- sub_filter "/manifest.json" "/tvrp/manifest.json";
- sub_filter "/manifest.webmanifest" "/tvrp/manifest.webmanifest";
- sub_filter "Cookies.set('settings', json)" "Cookies.set('settings', json, {path: '/tvrp/'})";
- proxy_cookie_path / /tvrp/;
- proxy_set_header Accept-Encoding "";
- proxy_pass http://(TVRemotePlusをインストールしたPCのローカルIPアドレス):8000/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement