Avatars in an offline install

(Alex Coto) #1

I’m trying to deploy a Discourse instance on a fully offline environment. We have a community of about 8000 people (mainly developers) on a big “local area” network.

Getting internet access to the server is not an option (it’s Cuba: mostly 56kbps dial-up modem at homes).

I’ve been juggling a little with the docker images/containers (luckily I’m not new to Rails), and I managed to get it up and running, by doing the bootstrap process on an online PC (and some more mumbo-jumbo that ain’t important right now).

The thing is, I found the nginx to be configured to use avatars dot discourse dot org as the backend for letter avatars. On an offline environment, this address is of course unreachable.

Is there any way I can still use these letter avatars locally? Maybe I missed some configuration or something. Any help would be appreciated.

(Matt Palmer) #2

Sure, just point your external avatars url site setting at /letter_avatar, and that’ll generate letter avatars on your local server.

(Alex Coto) #3

Good to know! Thanks @mpalmer!