Any missing converter? Open an issue or pull request!
Deployment
Warning 警告
If you can’t login, make sure you are accessing the service over localhost or https otherwise set HTTP_ALLOWED=true
# docker-compose.yml
services:
convertx:
image: ghcr.io/c4illin/convertx
container_name: convertx
restart: unless-stopped
ports:
- "3000:3000"
environment:
- PUID=1000 # user id for file permissions (should match your host user id)
- JWT_SECRET=aLongAndSecretStringUsedToSignTheJSONWebToken1234 # will use randomUUID() if unset
# - HTTP_ALLOWED=true # uncomment this if accessing it over a non-https connection
volumes:
- ./data:/app/data
Ensure PUID and PGID match your host user (id -u and id -g) to avoid permission issues on the mapped ./data volume. If you get unable to open database file, verify the directory permissions or run chown -R $USER:$USER path on the path you choose.
Then visit http://localhost:3000 in your browser and create your account. Don’t leave it unconfigured and open, as anyone can register the first account.
Environment variables
All are optional, JWT_SECRET is recommended to be set.
Warning 警告
Never expose the service to the internet with ALLOW_UNAUTHENTICATED or ACCOUNT_REGISTRATION true. Only allow users you trust to access the service.
Name
Default
Description
JWT_SECRET
when unset it will use the value from randomUUID()
A long and secret string used to sign the JSON Web Token
PUID
0 (root)
User ID to run the application process as (it first uses root to chown the files)
PGID
PUID if unset, root if both unset
Group ID to run the application process as
UMASK
002 (when PUID is set)
File creation mask for processes and created files
ACCOUNT_REGISTRATION
false
Allow users to register accounts
HTTP_ALLOWED
false
Allow HTTP connections, only set this to true locally
ALLOW_UNAUTHENTICATED
false
Allow unauthenticated users to use the service, only set this to true locally
AUTO_DELETE_EVERY_N_HOURS
24
Checks every n hours for files older then n hours and deletes them, set to 0 to disable
WEBROOT
The address to the root path setting this to “/convert” will serve the website on “example.com/convert/”
BRANDING
ConvertX
Custom string that allows you to change the display name of the website in the header (max 26 characters)
Shares conversion history between all unauthenticated users
MAX_CONVERT_PROCESS
0
Maximum number of concurrent conversion processes allowed. Set to 0 for unlimited.
PORT
3000
Application listen port
Docker images
There is a :latest tag that is updated with every release and a :main tag that is updated with every push to the main branch. :latest is recommended for normal use.
Pull requests are welcome! See open issues for the list of todos. The ones tagged with “converter request” are quite easy. Help with docs and cleaning up in issues are also very welcome!
评论