mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-21 12:53:24 +08:00
h5app serve
This commit is contained in:
parent
719b83007f
commit
f71d9b91e9
4 changed files with 26 additions and 24 deletions
|
@ -1,26 +1,23 @@
|
|||
# include nginx-rebuild.conf
|
||||
server {
|
||||
server_name YOUR_DOMAIN;
|
||||
listen 80;
|
||||
# HTTPS
|
||||
#listen 443 ssl http2;
|
||||
#ssl_certificate /pathto/ssl.crt;
|
||||
#ssl_certificate_key /pathto/ssl.key;
|
||||
# PROXY
|
||||
proxy_redirect http:// $scheme://;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
location / {
|
||||
proxy_pass http://localhost:18080;
|
||||
etag on;
|
||||
}
|
||||
location /assets {
|
||||
proxy_pass http://localhost:18080/assets;
|
||||
expires 90d;
|
||||
}
|
||||
#location /h5app {
|
||||
# alias /pathto/public/h5app;
|
||||
# etag on;
|
||||
#}
|
||||
server_name YOUR_DOMAIN;
|
||||
listen 80;
|
||||
# HTTPS
|
||||
#listen 443 ssl http2;
|
||||
#ssl_certificate /path/to/ssl.crt;
|
||||
#ssl_certificate_key /path/to/ssl.key;
|
||||
# PROXY
|
||||
proxy_redirect http:// $scheme://;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:18080;
|
||||
etag on;
|
||||
}
|
||||
location /h5app {
|
||||
alias /path/to/public/h5app;
|
||||
try_files $uri $uri/ /h5app/index.html;
|
||||
etag on;
|
||||
}
|
||||
}
|
||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -42,3 +42,7 @@ node
|
|||
|
||||
.DS_Store
|
||||
test.*
|
||||
|
||||
# Build
|
||||
|
||||
**/public/h5app/
|
||||
|
|
2
@rbv
2
@rbv
|
@ -1 +1 @@
|
|||
Subproject commit d242b9288b4fc5595f3757f71f58d6b8055de339
|
||||
Subproject commit 28379ae7d7f3d76b203f889f877ec7b6deb690b7
|
|
@ -2,6 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue