Compare commits
10 commits
9e435787c6
...
f7a7c4a375
Author | SHA1 | Date | |
---|---|---|---|
f7a7c4a375 | |||
|
86e7e2e220 | ||
|
c13e80bf2a | ||
|
5745dd40f1 | ||
|
f3af080237 | ||
|
ce7994e95c | ||
|
eea66f49e7 | ||
|
63f7d8f18d | ||
|
7af9712941 | ||
|
6370c0439d |
6 changed files with 52 additions and 21 deletions
|
@ -11,10 +11,13 @@ WORKDIR $APP_DIR
|
||||||
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
|
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
|
||||||
COPY ["./snappass", "$APP_DIR/snappass"]
|
COPY ["./snappass", "$APP_DIR/snappass"]
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
RUN pybabel compile -d snappass/translations
|
||||||
|
|
||||||
RUN python setup.py install && \
|
RUN python setup.py install && \
|
||||||
chown -R snappass $APP_DIR && \
|
chown -R snappass $APP_DIR && \
|
||||||
chgrp -R snappass $APP_DIR
|
chgrp -R snappass $APP_DIR
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
|
||||||
USER snappass
|
USER snappass
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
include *.rst LICENSE
|
include *.rst LICENSE
|
||||||
recursive-include snappass/static *
|
recursive-include snappass/static *
|
||||||
recursive-include snappass/templates *
|
recursive-include snappass/templates *
|
||||||
|
recursive-include snappass/translations *
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
coverage==7.6.0
|
coverage==7.6.0
|
||||||
fakeredis==2.23.4
|
fakeredis==2.24.1
|
||||||
flake8==7.0.0
|
flake8==7.1.1
|
||||||
freezegun==1.5.1
|
freezegun==1.5.1
|
||||||
pytest==8.1.0
|
pytest==8.3.2
|
||||||
pytest-cov==5.0.0
|
pytest-cov==5.0.0
|
||||||
tox==4.16.0
|
tox==4.18.0
|
||||||
bumpversion==0.6.0
|
bumpversion==0.6.0
|
||||||
wheel==0.43.0
|
wheel==0.44.0
|
||||||
|
|
|
@ -4,15 +4,41 @@ services:
|
||||||
|
|
||||||
snappass:
|
snappass:
|
||||||
build: .
|
build: .
|
||||||
image: pinterest/snappass
|
#image: pinterest/snappass
|
||||||
ports:
|
#ports:
|
||||||
- "5000:5000"
|
# - "5000:5000"
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- NO_SSL=True
|
- 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:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: "redis:latest"
|
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==42.0.8
|
cryptography==43.0.1
|
||||||
Flask==3.0.0
|
Flask==3.0.0
|
||||||
itsdangerous==2.2.0
|
itsdangerous==2.2.0
|
||||||
Jinja2==3.1.4
|
Jinja2==3.1.4
|
||||||
|
|
|
@ -11,7 +11,8 @@ from urllib.parse import quote_plus
|
||||||
from urllib.parse import unquote_plus
|
from urllib.parse import unquote_plus
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
from distutils.util import strtobool
|
from distutils.util import strtobool
|
||||||
from flask_babel import Babel
|
# _ is required to get the Jinja templates translated
|
||||||
|
from flask_babel import Babel, _ # noqa: F401
|
||||||
|
|
||||||
NO_SSL = bool(strtobool(os.environ.get('NO_SSL', 'False')))
|
NO_SSL = bool(strtobool(os.environ.get('NO_SSL', 'False')))
|
||||||
URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
||||||
|
|
Loading…
Reference in a new issue