anadius / gd-efc

Google Drive - encrypted folder copy
https://anadius.github.io/gd-efc/
383 stars 176 forks source link

How far does it support static pages? #10

Closed bm92aWJldnJvcw closed 3 years ago

bm92aWJldnJvcw commented 3 years ago

I tested it on server works fine. I'm interested to know if it would support statically... It was giving no found page's decryption files in zip so can you guide a bit on which page does it scan so that I can try some stuff out to make it correct?

anadius commented 3 years ago

...what? What are you trying to do? The only static page is the index.html file I host here on GitHub.

bm92aWJldnJvcw commented 3 years ago

...what? What are you trying to do? The only static page is the index.html file I host here on GitHub.

was thinking of if it can all work statically? if not maybe the decryption server will need a server actually? but then the website hosted statically isn't generating the decryption files correctly...

by not generating correctly I mean the worker.js and other files made contain just source of the 404 not found page!

edit: I added respective js into the respective html files and I think it should atleast give decryption server files so that I host it on actual server?

bm92aWJldnJvcw commented 3 years ago

I'm pretty sure now something is going wrong for the build and index html css and js hosted on static site. It's decryption file encrypt.html is just html of 404 page i.e. <title>Page Not Found</title> reason why I;m wondering how far can the code be hosted statically..

anadius commented 3 years ago

If you want to host the decryption page, like this, and you want to have the build.html page working properly, you need to host templates folder too. That's why you get a 404 error pages. Because you host only some of the required files. Just host all files from this repo...

Files for decryption server MUST be hosted on a server. Either PHP one or Cloudflare Workers server. You can't host them statically.

bm92aWJldnJvcw commented 3 years ago

If you want to host the decryption page, like this, and you want to have the build.html page working properly, you need to host templates folder too. That's why you get a 404 error pages. Because you host only some of the required files. Just host all files from this repo...

Files for decryption server MUST be hosted on a server. Either PHP one or Cloudflare Workers server. You can't host them statically.

Oh! that was easy. Thanks. I didn't upload those... my bad. It makes the correct files on one static project where I could upload the files. I have another project which is more restricted. So is there a way to add those templates into the html or js?

anadius commented 3 years ago

Yeah, just edit build.js. I'm not going to hold your hand, you can do it yourself.