Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
792d67b9
Commit
792d67b9
authored
Sep 23, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多余注释处理
parent
639295b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
27 deletions
+2
-27
nginx-start.sh
src/nginx-start.sh
+2
-27
No files found.
src/nginx-start.sh
View file @
792d67b9
...
@@ -37,7 +37,7 @@ cat <<EOF >/etc/nginx/conf.d/logs.conf
...
@@ -37,7 +37,7 @@ cat <<EOF >/etc/nginx/conf.d/logs.conf
EOF
EOF
# php7.4
cat
<<
EOF
>/etc/nginx/php/
$PHP74_HOST
.conf
cat
<<
EOF
>/etc/nginx/php/
$PHP74_HOST
.conf
location ~ \.php
$
{
location ~ \.php
$
{
fastcgi_pass
$PHP74_HOST
:9000;
fastcgi_pass
$PHP74_HOST
:9000;
...
@@ -56,6 +56,7 @@ location = /50x.html {
...
@@ -56,6 +56,7 @@ location = /50x.html {
root /usr/share/nginx/html;
root /usr/share/nginx/html;
}
}
EOF
EOF
# php8.0
cat
<<
EOF
>/etc/nginx/php/
$PHP80_HOST
.conf
cat
<<
EOF
>/etc/nginx/php/
$PHP80_HOST
.conf
location ~ \.php
$
{
location ~ \.php
$
{
fastcgi_pass
$PHP80_HOST
:9000;
fastcgi_pass
$PHP80_HOST
:9000;
...
@@ -148,7 +149,6 @@ server {
...
@@ -148,7 +149,6 @@ server {
location ^~ /client-web/ {
location ^~ /client-web/ {
proxy_pass http://
$JAVA_CLIENT_URI
;
proxy_pass http://
$JAVA_CLIENT_URI
;
#获取客户端真实IP
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
...
@@ -194,7 +194,6 @@ server {
...
@@ -194,7 +194,6 @@ server {
location ^~ /client-web/ {
location ^~ /client-web/ {
proxy_pass http://
$JAVA_CLIENT_URI
;
proxy_pass http://
$JAVA_CLIENT_URI
;
#获取客户端真实IP
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
...
@@ -379,7 +378,6 @@ server {
...
@@ -379,7 +378,6 @@ server {
location ^~ /client-web/ {
location ^~ /client-web/ {
proxy_pass http://
$JAVA_CLIENT_URI
;
proxy_pass http://
$JAVA_CLIENT_URI
;
#获取客户端真实IP
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-PORT \
$remote_port
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Real-IP \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
proxy_set_header X-Forwarded-For \
$remote_addr
;
...
@@ -505,9 +503,6 @@ server
...
@@ -505,9 +503,6 @@ server
alias /app/www/smartwhale/subapp;
alias /app/www/smartwhale/subapp;
try_files \
$uri
\
$uri
/ /index.html;
try_files \
$uri
\
$uri
/ /index.html;
#try_files
$uri
$uri
/ /dist/index.html; # 0406 原先是 /index.html;
#try_files
$uri
$uri
/ /dist/index.html; # 0406 原先是 /index.html;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods *;
add_header Access-Control-Allow-Methods *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Headers *;
...
@@ -550,26 +545,6 @@ server
...
@@ -550,26 +545,6 @@ server
error_page 404 /404.html;
error_page 404 /404.html;
error_page 502 /502.html;
error_page 502 /502.html;
#ERROR-PAGE-END
#ERROR-PAGE-END
# 暂时注释
# location /{
# add_header Access-Control-Allow-Origin *;
# add_header Access-Control-Allow-Headers *;
# add_header Access-Control-Allow-Methods *;
# proxy_pass http://localhost:9005/;
# proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
# proxy_set_header X-Real-Ip
$remote_addr
;
# proxy_set_header X-Ngnix-Proxy true;
# }
#
#
#
# location ^~ /api/ws/ {
# proxy_pass http://127.0.0.1:9005;
# proxy_http_version 1.1;
# proxy_set_header Upgrade
$http_upgrade
;
# proxy_set_header Connection "Upgrade";
# proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
# }
location /api {
location /api {
rewrite ^/api/(.*)
$
/
$1
break;
rewrite ^/api/(.*)
$
/
$1
break;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment