Skip to content

Commit

Permalink
Merge pull request sebo-b#12 from n-rodrig/mime-types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebo-b committed Jan 23, 2023
2 parents 8ec0200 + 334574f commit 2c20043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ ENV NODE_VER=16.3.0

WORKDIR /opt/warp
RUN apt-get update
RUN mkdir debs && apt-get install -y -d --no-install-recommends libpq5 && cp /var/cache/apt/archives/*deb debs
RUN mkdir debs && \
apt-get install -y -d --no-install-recommends libpq5 mime-support && \
cp /var/cache/apt/archives/*deb debs

RUN \
apt-get install -y wget && \
NODE_ARCH=$(uname -m | sed 's/^x86_64\|amd64$/x64/;s/^i.*86$/x86/;s/^aarch64$/arm64/') && \
Expand Down
4 changes: 2 additions & 2 deletions res/warp_uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[uwsgi]

socket = 0.0.0.0:8000

master = True
Expand All @@ -10,6 +9,7 @@ processes = 4
threads = 2
offload-threads = 2

mimefile = /etc/mime.types
die-on-term = True

module = warp:create_app()
Expand All @@ -21,4 +21,4 @@ route-label = static
route = ^/static/(.*) rewrite:$1
route-if = isfile:/opt/warp/static/${PATH_INFO} static:/opt/warp/static/${PATH_INFO}
route-run = addheader:Cache-Control: no-cache
route-run = return:404
route-run = return:404

0 comments on commit 2c20043

Please sign in to comment.