Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous committed Mar 20, 2024
1 parent 9cdf800 commit 180402b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile2
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM markliu2018/moneynote-all:latest

COPY ./docker/pc.conf /etc/nginx/sites-available/pc.conf
COPY ./dist/ /var/www/pc

WORKDIR /app
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile3
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM markliu2018/moneynote-all-no-mysql:latest

COPY ./docker/pc.conf /etc/nginx/sites-available/pc.conf
COPY ./dist/ /var/www/pc

WORKDIR /app
Expand Down
29 changes: 29 additions & 0 deletions docker/pc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
server {

listen 81;
listen [::]:81;
server_name localhost;
root /var/www/pc;
index index.html index.htm;

client_max_body_size 50M; //文件大小限制,默认1m
client_header_timeout 1m;
client_body_timeout 1m;
proxy_connect_timeout 60s;
proxy_read_timeout 1m;
proxy_send_timeout 1m;

location / {
try_files $uri $uri/ /index.html;
}

location ~ ^/api/v1 {
proxy_pass http://127.0.0.1:9092;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moneynote-pc",
"version": "1.0.81",
"version": "1.0.82",
"private": true,
"scripts": {
"analyze": "cross-env ANALYZE=1 max build",
Expand Down

0 comments on commit 180402b

Please sign in to comment.