Compare commits
No commits in common. "f7a7c4a375dff19bbf867677eeb51589e73c535d" and "9e435787c6674f743c69490dcc8f3ac8595dacac" have entirely different histories.
f7a7c4a375
...
9e435787c6
6 changed files with 21 additions and 52 deletions
|
@ -11,13 +11,10 @@ WORKDIR $APP_DIR
|
|||
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
|
||||
COPY ["./snappass", "$APP_DIR/snappass"]
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN pybabel compile -d snappass/translations
|
||||
|
||||
RUN python setup.py install && \
|
||||
chown -R snappass $APP_DIR && \
|
||||
chgrp -R snappass $APP_DIR
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
USER snappass
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
include *.rst LICENSE
|
||||
recursive-include snappass/static *
|
||||
recursive-include snappass/templates *
|
||||
recursive-include snappass/translations *
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
coverage==7.6.0
|
||||
fakeredis==2.24.1
|
||||
flake8==7.1.1
|
||||
fakeredis==2.23.4
|
||||
flake8==7.0.0
|
||||
freezegun==1.5.1
|
||||
pytest==8.3.2
|
||||
pytest==8.1.0
|
||||
pytest-cov==5.0.0
|
||||
tox==4.18.0
|
||||
tox==4.16.0
|
||||
bumpversion==0.6.0
|
||||
wheel==0.44.0
|
||||
wheel==0.43.0
|
||||
|
|
|
@ -4,41 +4,15 @@ services:
|
|||
|
||||
snappass:
|
||||
build: .
|
||||
#image: pinterest/snappass
|
||||
#ports:
|
||||
# - "5000:5000"
|
||||
image: pinterest/snappass
|
||||
ports:
|
||||
- "5000:5000"
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- REDIS_HOST=redis
|
||||
- NO_SSL=True
|
||||
- VIRTUAL_HOST=share.brothertec.eu
|
||||
- VIRTUAL_PORT=5000
|
||||
- LETSENCRYPT_HOST=share.brothertec.eu
|
||||
- LETSENCRYPT_EMAIL=admin@brothertec.eu
|
||||
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=false"
|
||||
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
- edge-tier
|
||||
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: "redis:latest"
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
name: nginx-proxy
|
||||
external: true
|
||||
edge-tier:
|
||||
name: edge
|
||||
external: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cryptography==43.0.1
|
||||
cryptography==42.0.8
|
||||
Flask==3.0.0
|
||||
itsdangerous==2.2.0
|
||||
Jinja2==3.1.4
|
||||
|
|
|
@ -11,8 +11,7 @@ from urllib.parse import quote_plus
|
|||
from urllib.parse import unquote_plus
|
||||
from urllib.parse import urljoin
|
||||
from distutils.util import strtobool
|
||||
# _ is required to get the Jinja templates translated
|
||||
from flask_babel import Babel, _ # noqa: F401
|
||||
from flask_babel import Babel
|
||||
|
||||
NO_SSL = bool(strtobool(os.environ.get('NO_SSL', 'False')))
|
||||
URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
||||
|
|
Loading…
Reference in a new issue