Sites Configuration Overview
The Sites Config page in VpAdmin allows you to manage all your websites in one place. Here, you can add new websites, edit existing site configurations, view site details, and even delete websites. It provides a centralized interface to control and customize your online presence.
Adding a New Site
To add a new website:
Click "Add New Site": Click the "+ Add New Site" button. A dialog box will appear.
Connect to Git: Click either "Connect GitHub" or "Connect GitLab" to authorize VpAdmin to access your repository.
Configure Site Settings: Fill in the required information for your new site, including:
- Site Name: Enter a descriptive name for your site.
- Theme: Choose a free theme for your website (e.g., VitePress).
- Username: Auto filled by system.
- Repo Address: Auto filled by system.
- Admin Backend: Select "Yes" or "No" to enable or disable the admin panel.
- Domain: (Optional) Enter a custom domain, or leave the domain as default if you don't have your own. This URL will be used as the callback domain for OAuth configurations. If you need to add third-party OAuth login to your website, please configure the correct URL for your website. Please refer to the OAuths section for details.
Click "Confirm" Save the new site configurations, which will trigger the initial website deployment.
(See the annotated screenshot below for guidance)
Editing a Site Configuration:
Click "Edit": Click the edit icon next to the site you want to modify.
Modify Settings: In the Edit Site Configuration dialog box, you can reconnect to GitHub or GitLab and adjust the domain setting.
Click "Confirm": Click the "Confirm" button to save your changes, or "Cancel" to discard them.
Viewing Site Details:
Deleting a Site:
- Click "Delete": Click the trash icon next to the site you want to delete.
- Confirm Deletion: In the confirmation dialog, confirm you want to delete the site configuration.
- Option to delete the related remote repository and website.
DANGER
This will take your online website offline and delete it.
Searching for a Site
Use the filter at the top of the site list to search for a specific site.
Paging Sites
Use the paging feature to find a specific site if there are too many sites.
Conclusion
The Sites Config page in VpAdmin gives you full control over your websites, enabling you to quickly add, edit, view, and manage your online presence efficiently.