Commit 32fa7a25 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Nginx conf for gui.

parent 72717542
......@@ -11,6 +11,7 @@ RUN npm run build
# production environment
FROM nginx:1.13.9-alpine
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /app/build
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
server {
listen 80;
daemon off;
worker_processes 2;
user www-data;
location /nomadxt {
root /app/build;
}
events {
use epoll;
worker_connections 128;
}
error_log logs/error.log info;
http {
server_tokens off;
include mime.types;
charset utf-8;
access_log logs/access.log combined;
server {
server_name localhost;
listen 127.0.0.1:80;
location /nomadxt {
root /app/build;
}
location /nomadxt/api {
proxy_pass http://127.0.0.1:8000;
}
location /nomadxt/api {
proxy_pass http://127.0.0.1:8000;
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment