Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Wishlist: Provide external resources(Mathjax etc.) locally #38

Closed
brlin-tw opened this issue Mar 19, 2018 · 6 comments
Closed

Wishlist: Provide external resources(Mathjax etc.) locally #38

brlin-tw opened this issue Mar 19, 2018 · 6 comments
Labels

Comments

@brlin-tw
Copy link

brlin-tw commented Mar 19, 2018

Currently docker-hackmd requires resources from Cloudflare CDN, which causes loading problem on poor internet access environments. Please host these resources locally.

@brlin-tw brlin-tw changed the title Provide external resources(Mathjax etc.) locally Wishlist: Provide external resources(Mathjax etc.) locally Mar 19, 2018
@SISheogorath
Copy link

You can simply use the environment variable HMD_USECDN=false.

@brlin-tw
Copy link
Author

Thanks for the info.

@brlin-tw
Copy link
Author

brlin-tw commented Mar 19, 2018

@SISheogorath I've set and exported the HMD_USECDN environment variable with the value false before docker-compose start, but the page still request resources from Google Fonts, Cloudflare CDN etc.

The page doesn't render properly when the internet connection is disabled and the browser cache is cleared.

@SISheogorath
Copy link

Please double check that you wrote false all lowercase and run docker-compose up -d because start iirc doesn't recreate the container.

@brlin-tw
Copy link
Author

Works now, thanks!

@SISheogorath
Copy link

By the way, thanks for your work on the Wiki @Lin-Buo-Ren

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants