mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

how to put static resources on my self-built server #20

Closed jingtaozhang18 closed 3 years ago

jingtaozhang18 commented 3 years ago

I use the docker image on dockerhub to deploy my service. But getting static resource through cdnjs.cloudflare.com is relatively slow for me. So Is there an easy way to put static resources on my self-built server?

mkaczanowski commented 3 years ago

atm you could modify the urls here: https://github.com/mkaczanowski/pastebin/blob/a8e8476c9c25575d5f8a29431bff3d4d5459ac0c/src/plugins.rs#L15

but it's not configurable from the CLI

jingtaozhang18 commented 3 years ago

Thanks for your help!