# Css and Fonts not loading

**URL:** <https://discuss.write.as/t/css-and-fonts-not-loading/772>\
**Category:** Installation\
**Created:** [August 12, 2019, 8:27pm UTC](https://discuss.write.as/t/css-and-fonts-not-loading/772 "2019-08-12T20:27:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MissionControl](https://discuss.write.as/letter_avatar_proxy/v4/letter/m/c57346/32.png) [@MissionControl](https://discuss.write.as/u/MissionControl)\
**Post date:** [August 12, 2019, 8:27pm UTC](https://discuss.write.as/t/css-and-fonts-not-loading/772/1 "2019-08-12T20:27:16Z")

</div>

Hi there! I’m having trouble getting the css and fonts to load on my configuration. I’m using the default nginx config.

My CSS block looks like this:

> location ~ ^/(css|img|js|fonts)/ {  
> root /var/www/writefreely/static;  
> # Optionally cache these files in the browser:  
> # expires 12M;  
> }

Is there something I’m missing? The root section is correctly formatted, as far as I can tell.

---

<div class="post-metadata">

**Author:** ![robjloranger](https://discuss.write.as/user_avatar/discuss.write.as/robjloranger/32/291_2.png) [@robjloranger](https://discuss.write.as/u/robjloranger)\
**Post date:** [August 13, 2019, 12:18am UTC](https://discuss.write.as/t/css-and-fonts-not-loading/772/2 "2019-08-13T00:18:51Z")

</div>

Hi @MissionControl, did you run the key generation?

If not, run `writefreely --gen-keys` in the root of the application folder.

---

<div class="post-metadata">

**Author:** ![MissionControl](https://discuss.write.as/letter_avatar_proxy/v4/letter/m/c57346/32.png) [@MissionControl](https://discuss.write.as/u/MissionControl)\
**Post date:** [August 13, 2019, 10:28am UTC](https://discuss.write.as/t/css-and-fonts-not-loading/772/3 "2019-08-13T10:28:56Z")

</div>

I did run the keygen.

What it turned out to be is that I had write freely configured so that the public url was localhost. Updated to my new url and it’s working fine now. 🙂 Thanks for the help!

---

<div class="post-metadata">

**Author:** ![robjloranger](https://discuss.write.as/user_avatar/discuss.write.as/robjloranger/32/291_2.png) [@robjloranger](https://discuss.write.as/u/robjloranger)\
**Post date:** [August 13, 2019, 3:18pm UTC](https://discuss.write.as/t/css-and-fonts-not-loading/772/4 "2019-08-13T15:18:01Z")

</div>

Awesome, glad it’s working now 😊
