h5app serve

This commit is contained in:
devezhao 2021-06-08 17:53:02 +08:00
parent 719b83007f
commit f71d9b91e9
4 changed files with 26 additions and 24 deletions

View file

@ -1,26 +1,23 @@
# include nginx-rebuild.conf # include nginx-rebuild.conf
server { server {
server_name YOUR_DOMAIN; server_name YOUR_DOMAIN;
listen 80; listen 80;
# HTTPS # HTTPS
#listen 443 ssl http2; #listen 443 ssl http2;
#ssl_certificate /pathto/ssl.crt; #ssl_certificate /path/to/ssl.crt;
#ssl_certificate_key /pathto/ssl.key; #ssl_certificate_key /path/to/ssl.key;
# PROXY # PROXY
proxy_redirect http:// $scheme://; proxy_redirect http:// $scheme://;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / { location / {
proxy_pass http://localhost:18080; proxy_pass http://127.0.0.1:18080;
etag on; etag on;
} }
location /assets { location /h5app {
proxy_pass http://localhost:18080/assets; alias /path/to/public/h5app;
expires 90d; try_files $uri $uri/ /h5app/index.html;
} etag on;
#location /h5app { }
# alias /pathto/public/h5app;
# etag on;
#}
} }

4
.gitignore vendored
View file

@ -42,3 +42,7 @@ node
.DS_Store .DS_Store
test.* test.*
# Build
**/public/h5app/

2
@rbv

@ -1 +1 @@
Subproject commit d242b9288b4fc5595f3757f71f58d6b8055de339 Subproject commit 28379ae7d7f3d76b203f889f877ec7b6deb690b7

View file

@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<title>REBUILD</title> <title>REBUILD</title>
</head> </head>
<body> <body>