From 6bf7e7cec77cab80564bccfcf11e78e25c936691 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 29 Aug 2020 23:41:20 +0200 Subject: oni so dodali manifest --- 192.png | Bin 1877 -> 0 bytes 512.png | Bin 4403 -> 0 bytes manifest.json | 27 --------------------------- sw.js | 7 ++++--- "\305\276" | 58 ---------------------------------------------------------- 5 files changed, 4 insertions(+), 88 deletions(-) delete mode 100644 192.png delete mode 100644 512.png delete mode 100644 manifest.json delete mode 100644 "\305\276" diff --git a/192.png b/192.png deleted file mode 100644 index d07ebb3..0000000 Binary files a/192.png and /dev/null differ diff --git a/512.png b/512.png deleted file mode 100644 index 7cad0ef..0000000 Binary files a/512.png and /dev/null differ diff --git a/manifest.json b/manifest.json deleted file mode 100644 index a93e9aa..0000000 --- a/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "short_name": "Teletekst RTVSLO", - "name": "Teletekst RTV Slovenija", - "description": "Spletna aplikacija za branje teleteksta TV Slovenija", - "lang": "sl-SI", - "categories": [ - "productivity", - "utilities" - ], - "icons": [ - { - "src": "/192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "/512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": "/index.html", - "background_color": "#000000", - "display": "standalone", - "scope": "/", - "theme_color": "#000000" -} diff --git a/sw.js b/sw.js index 756f11f..347ad15 100644 --- a/sw.js +++ b/sw.js @@ -2,11 +2,12 @@ const static_cache_name = "site-static-v0.0.0"; const offlineUrl = "/offline.html"; const assets = [ + "/manifest.json", // proxy | "/", // proxy | proxyjan je tudi sw.js "/index.html", // proxy | - "/512.png", // moje | redfox.js je poklican iz - "/512.png", // proxy | vsake proxyjane html strani - "/manifest.json", // moje | in vsebuje custom skripte, + "/slike/icons-512.png", // proxy | redfox.js je poklican iz + "/slike/icons-192.png", // proxy | vsake proxyjane html strani + "/manifest.webmanifest",// proxy | in vsebuje custom skripte, "/desktop2.css", // proxy | kot na primer sw inštalacijo. "/phone2.css", // proxy | "/pin.svg", // proxy | diff --git "a/\305\276" "b/\305\276" deleted file mode 100644 index ff71ccc..0000000 --- "a/\305\276" +++ /dev/null @@ -1,58 +0,0 @@ -server { - listen 0.0.0.0:80; - listen [::]:80; - server_name .teletekst.xn--jha.ga; - return 301 https://teletekst.xn--jha.ga$request_uri; - port_in_redirect off; - server_name_in_redirect off; -} -server { - listen 0.0.0.0:443 ssl http2; - listen [::]:443 ssl http2; - ssl_certificate /etc/letsencrypt/live/teletekst.xn--jha.ga/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/teletekst.xn--jha.ga/privkey.pem; - ssl_session_cache builtin:1000 shared:SSL:10m; - ssl_prefer_server_ciphers on; - add_header Strict-Transport-Security "max-age=604800"; - index index.html; - server_name .teletekst.xn--jha.ga; - root /var/www/teletekst.xn--jha.ga; - location / { - set $cors ''; - set $both_conditions ""; - add_header "x-debug-location-gse" "triggered"; - if ($http_origin ~ \.?xn--jha\.ga$) { - set $cors 'true'; - set $both_conditions "P"; - add_header "x-debug-http-origin-check" "passed"; - } - if ($cors = 'true') { - add_header "Access-Control-Allow-Origin" $http_origin always; - add_header "Access-Control-Allow-Credentials" "true" always; - add_header "Access-Control-Allow-Methods" "GET, POST, PATCH, PUT, DELETE, OPTIONS" always; - add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always; - add_header 'Access-Control-Expose-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always; - } - if ($request_method = 'OPTIONS') { - set $both_conditions "${both_conditions}D"; - } - if ($both_conditions = PD) { - add_header "Access-Control-Allow-Origin" $http_origin always; - add_header "Access-Control-Allow-Credentials" "true" always; - add_header "Access-Control-Allow-Methods" "GET, POST, PATCH, PUT, DELETE, OPTIONS" always; - add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always; - add_header 'Access-Control-Expose-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always; - add_header 'Access-Control-Max-Age' -1; - add_header 'Content-Type' 'text/plain charset=UTF-8'; - add_header 'Content-Length' 0; - return 204; - } - try_files $uri $uri/ @backend; - } - location @backend { - proxy_pass https://localhost:27443; - proxy_set_header Host teletext.rtvslo.si; - proxy_set_header Referer https://teletext.rtvslo.si/; - proxy_set_header X-Forwarded-For $remote_addr; - } -} -- cgit v1.2.3