feat: init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM nginx:latest
|
||||
|
||||
#RUN rm /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY . /usr/share/nginx/html/
|
||||
COPY nginx.conf /etc/nginx
|
||||
|
||||
|
||||
VOLUME /usr/share/nginx/html
|
||||
VOLUME /etc/nginx
|
||||
|
||||
EXPOSE 8080:80
|
||||
@@ -0,0 +1,29 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /api {
|
||||
#proxy_set_header X-Forwarded-Host $host
|
||||
proxy_pass http://twake_node_1:3000;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user