-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfig.sh
47 lines (36 loc) · 1.9 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## ComfyUI-Nvidia-Docker configuration
# loaded by init.bash as /comfyui-nvidia_config.sh
# ... after setting the variables from the command line: will override with the values set here
#
# To use your custom version, duplicate the file and mount it in the container: -v /path/to/your/config.sh:/comfyui-nvidia_config.sh
#
# Can be used to set the other command line variables
# Set using: export VARIABLE=value
## Environment variables loaded when passing environment variables from user to user
# Ignore list: variables to ignore when loading environment variables from user to user
export ENV_IGNORELIST="HOME PWD USER SHLVL TERM OLDPWD SHELL _ SUDO_COMMAND HOSTNAME LOGNAME MAIL SUDO_GID SUDO_UID SUDO_USER CHECK_NV_CUDNN_VERSION VIRTUAL_ENV VIRTUAL_ENV_PROMPT ENV_IGNORELIST ENV_OBFUSCATE_PART"
# Obfuscate part: part of the key to obfuscate when loading environment variables from user to user, ex: HF_TOKEN, ...
export ENV_OBFUSCATE_PART="TOKEN API KEY"
########## Command line variables
# Uncomment and set as preferred, see README.md for more details
# User and group id
#export WANTED_UID=1000
#export WANTED_GID=1000
# DO NOT use `id -u` or `id -g` to set the values, use the actual values -- the script is started by comfytoo with 1025/1025
# Base directory
#export BASE_DIRECTORY="/basedir"
# Security level
#export SECURITY_LEVEL="weak"
# ComfyUI command line extra
#export COMFY_CMDLINE_EXTRA="--fast --use-sage-attention"
# Force chown: force chown mode enabled, will force change directory ownership as comfy user during script rerun (might be slow)
#export FORCE_CHOWN="false"
## NVIDIA specific adds
#export NVIDIA_VISIBLE_DEVICES=all
#export NVIDIA_DRIVER_CAPABILITIES=all
#export NVCC_APPEND_FLAGS='-allow-unsupported-compiler'
## User settings
# If adding content to be obfuscated, add it to ENV_OBFUSCATE_PART
#export HF_TOKEN=""
#export OPENAI_API_KEY=""
# Do not use an exit code, this is loaded by source