Skip to content
Permalink
Browse files

added nginx config to docker image

  • Loading branch information...
p3root committed Feb 24, 2019
1 parent d99bdea commit f93e773066e55139c19e2b619c36a315d8eaa629
Showing with 21 additions and 0 deletions.
  1. +3 −0 docker/Dockerfile
  2. +18 −0 docker/nginx-automatica-config
@@ -27,6 +27,9 @@ ENV PATH="${PATH}:/root/.dotnet/tools"
# Copy everything else and build
COPY . /src

COPY ./docker/nginx-automatica-config "/etc/nginx/sites-available/automatica-app"
RUN ln -s "/etc/nginx/sites-available/automatica-app" /etc/nginx/sites-enabled/automatica-app

COPY --from=libnserial /src/serialportstream/dll/serialunix/bin/usr/local/lib/libnserial.so.1.1 /usr/lib
COPY --from=libnserial /src/serialportstream/dll/serialunix/bin/usr/local/lib/libnserial.so.1 /usr/lib
COPY --from=libnserial /src/serialportstream/dll/serialunix/bin/usr/local/lib/libnserial.so /usr/lib
@@ -0,0 +1,18 @@
server {
listen 80;
location / {
proxy_pass http://localhost:5001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 3000;
proxy_send_timeout 3000;
proxy_read_timeout 3000;
send_timeout 3000;
client_max_body_size 100m;
}
}

0 comments on commit f93e773

Please sign in to comment.
You can’t perform that action at this time.