Changes:
- Character Set Preparation Optimization: Refactored character set preparation in password generation to improve efficiency and maintainability.
- Cache Utilization for Static Content: Implemented caching for serving static files like
manifest.jsonandservice-worker.js, reducing server load and improving response times. - Restructured files to keep the project clean and to help future coding
- Reduced worker count to 2 and defined 4 threads in Dockerfile
To use:
docker pull jocxfin/pwgen:latest
docker run -d -p 5069:5069 jocxfin/pwgen:latestOffline mode:
docker pull jocxfin/pwgen:latest
docker run -d -e NO_API_CHECK=true -p 5069:5069 jocxfin/pwgen:latestWith environmental variables defining settings:
docker pull jocxfin/pwgen:latest
docker run -d -p 5069:5069 \
-e NO_API_CHECK=false \
-e PW_LENGTH=12 \
-e PW_INCLUDE_UPPERCASE=true \
-e PW_INCLUDE_DIGITS=true \
-e PW_INCLUDE_SPECIAL=true \
-e PW_EXCLUDE_HOMOGLYPHS=false \
-e PP_WORD_COUNT=4 \
-e PP_CAPITALIZE=true \
-e PP_SEPARATOR_TYPE=space \
-e PP_USER_DEFINED_SEPARATOR='' \
-e PP_MAX_WORD_LENGTH=12 \
-e PP_INCLUDE_NUMBERS=true \
-e PP_INCLUDE_SPECIAL_CHARS=true \
-e PP_LANGUAGE=en \
jocxfin/pwgen:latestQuick and straightforward improvements for a better tool.