docs/asking/faq.mdx
Answers to common questions about Gogs configuration, administration, and usage.
```bash
gogs web -port 3001
```
This flag also updates the port number shown on the install page, so pick the port you intend to keep using.
```ini
[server]
OFFLINE_MODE = true
```
This disables external network calls such as CDN resource loading and Gravatar avatar fetching.
```
custom/robots.txt
```
Gogs will serve this file automatically at `/robots.txt`.
Once logged in, the administrator can promote other users by navigating to **Admin Panel** > **Users** and editing user accounts. A user who registers through the initial install page is also made an administrator.
1. **Stop Gogs**, then create a temporary admin user from the command line:
```bash
su git
cd /home/git/gogs
gogs admin create-user --name tmpuser --password tmppassword --admin --email [email protected]
```
2. **Start Gogs** again, then log in as `tmpuser` in your browser. Navigate to **Admin Panel** > **Users**, click **Edit** next to the original administrator account, and set a new password.
3. **Clean up** by logging out, logging back in as the original administrator with the new password, then deleting the `tmpuser` account from **Admin Panel** > **Users**.
It is safest to stop Gogs before creating the temporary user via the command line, then start it again afterward.
To enable or disable this permission, go to the **Admin Panel** > **Users**, select the user, and toggle the Git hooks permission in their account settings (`/admin/users/:userid`).
If you see the "Welcome to Wiki!" page but no green "Create the first page" button, your repository was likely created as a mirror. You have two options:
1. Edit the wiki on the upstream repository that is being mirrored.
2. Convert the mirror to a regular repository under **Settings** > **Danger Zone** if you no longer need it to be a mirror.