-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Recovery | ||
This page is a collection of remedies for issues that can occur with ViewTube. | ||
|
||
## Lost access to admin account | ||
|
||
1. Create a new account you would like to use as an admin | ||
2. Set the environment variable `VIEWTUBE_ADMIN_USER` to your the username of your new account | ||
3. Restart ViewTube | ||
|
||
If have registration disabled and cannot create an account, continue reading. | ||
|
||
## Disabled registration and lost access to admin account | ||
|
||
1. Start a shell session inside the mongodb container | ||
```bash | ||
docker exec -it <YOUR-MONGODB-CONTAINER-NAME-HERE> bash | ||
``` | ||
2. Start the mongo shell | ||
```bash | ||
mongosh | ||
``` | ||
3. Select the viewtube database | ||
```bash | ||
use viewtube | ||
``` | ||
4. Execute the following command to allow registration | ||
```bash | ||
db['server-settings'].updateOne({version:1},{$set: {registrationEnabled:true}}) | ||
``` | ||
Now you can create a new admin user according to the topic above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Admin Panel | ||
|
||
Visit the admin panel by clicking on your profile image and selecting "Admin panel". | ||
|
||
 | ||
|
||
## Info | ||
|
||
Information about the server and configuration. Only IP adress is shown at the moment, more coming soon. | ||
|
||
## Users | ||
|
||
Configure options for the instance here. Make sure to restart ViewTube after configuring these options. | ||
|
||
### Enable public registration | ||
|
||
If this option is disabled, the register form is hidden and registration is blocked. Accounts can only be created by the admin. | ||
|
||
### Require login everywhere | ||
|
||
Makes the entire ViewTube instance private, requiring a login for every page. | ||
|
||
::alert{type="info"} | ||
Look for the following log messages to make sure your preferred configuration is applied. | ||
 | ||
:: | ||
|
||
## Logs | ||
|
||
View and download the log files. | ||
|
||
 | ||
|
||
## Blocked videos | ||
|
||
This option allows adding video IDs that wil be blocked. This option exists in order for public instances to respond to DMCA requests. Make sure to only add the ID of the video, not the entire URL. | ||
|
||
If blocked, a video will show the following error when accessed. | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.