Jump to content

Unifi - config.gateway.json - SOLVED

1 post in this topic Last Reply

Recommended Posts

Hi All


Just wanted to create this step by step if somebody else wants to fix the UNIFI USG static host record in DNS forwarder once and for all....

When following this great video created by Space invader one



Enabling Let's Encrypt under "Identification" will give you an error if you using UNIFI and you would need to create a config.gateway.json for your controller.

(Update: They still haven't created this functionality in their UI, even if its been requested since 2017 !!!)


1) you need a validated config.gateway.json file that you can place on your controller (Cloud key in my example)



2) Use WinSCP to copy the file to the folder: /srv/unifi/data/sites/[SITE CODE}/ (You can see your sitecode in your http string)


5) Reprovision your USG under: Controller Devices > USG > Config > Manage Device > Force provision.


Now when doing future updates to your UNIFI controller the config.gateway.json will keep the USG static host record in DNS forwarded

Edited by casperse

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now