-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
server { | ||
listen 443 ssl; | ||
server_name archery.your-project.com; | ||
ssl_certificate /etc/nginx/ssl/STAR_internal-project_com.crt; | ||
ssl_certificate_key /etc/nginx/ssl/STAR_internal-project_com.key; | ||
ssl_session_timeout 5m; | ||
client_max_body_size 20M; | ||
proxy_read_timeout 600s; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:8888; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-Host $host; | ||
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; | ||
} | ||
|
||
location /static { | ||
alias /opt/archery/static; | ||
} | ||
|
||
error_page 404 /404.html; | ||
location = /40x.html { | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
} | ||
|
||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
server{ | ||
listen 9123; #监听的端口 | ||
server_name archery; | ||
client_max_body_size 20M; | ||
proxy_read_timeout 600s; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:8888; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-Host $host; | ||
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; | ||
} | ||
|
||
location /static { | ||
alias /opt/archery/static; | ||
} | ||
|
||
error_page 404 /404.html; | ||
location = /40x.html { | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters