Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 12042c81
authored
Aug 25, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nginx配置代理
1 parent
02a106cd
Pipeline
#3674
failed
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
default.conf
docker-compose.yml
default.conf
0 → 100644
View file @
12042c8
# pushState friendly!
# The setup:
# * website name is `_`
# * javascript app is located at `/app`
charset
utf
-
8
;
tcp_nopush
on
;
tcp_nodelay
off
;
client_header_timeout
10
s
;
client_body_timeout
10
s
;
client_max_body_size
128
k
;
reset_timedout_connection
on
;
gzip
on
;
gzip_types
text
/
css
text
/
javascript
text
/
xml
text
/
plain
application
/
javascript
application
/
x
-
javascript
application
/
json
application
/
xml
application
/
rss
+
xml
application
/
atom
+
xml
font
/
truetype
font
/
opentype
image
/
svg
+
xml
;
server
{
listen
80
;
server_name
localhost
;
root
/
app
;
expires
$
expires
;
# To make sure any assets can get through :)
location
/ {
try_files
$
uri
@
rewrites
;
}
location
/
front
{
proxy_pass
https
://
hzdev
.
seetatech
.
com
:
9997
;
proxy_ssl_verify
off
;
}
# If no asset matches, send it to your javascript app. Hopefully it's a route in the app!
location
@
rewrites
{
rewrite
^(.+)$ /
index
.
html
last
;
}
}
\ No newline at end of file
docker-compose.yml
View file @
12042c8
...
...
@@ -10,5 +10,6 @@ services:
context
:
.
volumes
:
-
/ssl:/app/ssl
-
default.conf:/etc/nginx/conf.d/default.conf
ports
:
-
9998:80
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment