8 Commits

Author SHA1 Message Date
arian 3dec409169 build(docker): implement containerized debian packaging
Signed-off-by: Arian Nasr <arian@2ari.ca>
2026-05-09 14:35:51 -04:00
arian 4130cc4269 chore(deps): bump gunicorn==26.0.0 2026-05-09 13:42:51 -04:00
arian 0893d21ded perf(upload) add MAX_CONTENT_LENGTH to prevent DoS 2026-05-01 06:30:12 -04:00
arian 4278fd530d chore: bump pip==26.1 2026-04-26 23:16:27 -04:00
arian 483b0fd7b0 bump packaging==26.2 2026-04-26 23:13:11 -04:00
arian c7f2c99c6b chore: bump click==8.3.3 2026-04-22 19:58:48 -04:00
arian 1d3ae30cc9 pin addl. pypi packages 2026-04-21 14:37:35 -04:00
arian 8b30c88a6a Merge branch 'pr-apt-purge-fix' 2026-04-16 11:58:56 -04:00
5 changed files with 35 additions and 3 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ navidrome-upload.service
.idea/
.env
/README.md
__pycache__/
__pycache__/
*.deb
+27
View File
@@ -0,0 +1,27 @@
# Navidome-Uploader Dockerfile for building .deb packages
# Arian Nasr
# May 9, 2026
FROM debian:13-slim
# Prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
debhelper \
devscripts \
fakeroot \
python3 \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build/src
RUN mkdir -p /dist
COPY . .
RUN chmod +x release/build-deb.sh
CMD ["sh", "-c", "./release/build-deb.sh && mv ../*.deb /dist/"]
+2
View File
@@ -8,9 +8,11 @@ from werkzeug.utils import secure_filename
UPLOAD_FOLDER = os.environ.get('NAVIDROME_MUSIC_FOLDER', '/opt/navidrome/music')
ALLOWED_EXTENSIONS = {'flac', 'mp3', 'wav'}
MAX_CONTENT_LENGTH = 500 * 1024 * 1024
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
app.config['MAX_CONTENT_LENGTH'] = MAX_CONTENT_LENGTH
def allowed_file(filename):
return '.' in filename and \
View File
+4 -2
View File
@@ -1,8 +1,10 @@
blinker==1.9.0
click==8.3.2
click==8.3.3
Flask==3.1.3
itsdangerous==2.2.0
Jinja2==3.1.6
MarkupSafe==3.0.3
Werkzeug==3.1.8
gunicorn==25.3.0
gunicorn==26.0.0
pip==26.1.1
packaging==26.2