-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make all game assets self-hostable #169
Comments
Thanks for the idea! I think I could actually vendor those in. Like download them and host them as part of the docker image. I will think of something when dealing with the forward header for reverse proxies. |
I have the world's tenth-most-ugliest process ever devised for getting around this. I'm sure whatever you come up with will be more logical and simpler. Step by stepI fetched all non-local urls with browser developer tools.
steps taken
I found app.jar with get app.jar from
and modify it to use /seven-wonders-assets/ paths for all the files. I set css2 to just "css2" and renamed the file to omit the question mark and other parameter-type entries. Its whole contents are as follows.
And now upload the updated file into app.jar
And send that file back to where it came from.
And restart my docker app, which is a systemd service.
And confirm the jar is still updated.
And now this game works without leaking info to the font and unpkg servers. |
I noticed that the web browser makes requests to fonts.googleapis.com and unpkg.com for stylesheets. Would it be possible to add a flag that uses some cached version that can be included in the docker image, so this game does not send users to these urls?
The text was updated successfully, but these errors were encountered: