-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
104 additions
and
6 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
5 changes: 5 additions & 0 deletions
5
v-demo/shortlink/shortlink-spring/src/main/resources/application-dev.yml
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,5 @@ | ||
server: | ||
port: 3000 | ||
|
||
vitamin: | ||
prefix: http://localhost:3000/ |
5 changes: 5 additions & 0 deletions
5
v-demo/shortlink/shortlink-spring/src/main/resources/application-prod.yml
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,5 @@ | ||
server: | ||
port: 3000 | ||
|
||
vitamin: | ||
prefix: https://drinkice.xyz/ |
3 changes: 0 additions & 3 deletions
3
v-demo/shortlink/shortlink-spring/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
v-demo/shortlink/shortlink-spring/src/main/resources/application.yml
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,8 @@ | ||
spring: | ||
application: | ||
name: shortlink | ||
profiles: | ||
active: dev | ||
|
||
vitamin: | ||
perfix: http://localhost:3000/ |
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,48 @@ | ||
charset utf-8; # 避免中文乱码 | ||
|
||
autoindex on; #开启索引功能 | ||
autoindex_exact_size off; #关闭计算文件确切大小(单位bytes),只显示大概大小(单位kb、mb、gb) | ||
autoindex_localtime on; #显示本机时间而非 GMT 时间 | ||
|
||
|
||
server { | ||
listen 80; | ||
server_name nahidalibrary.xyz; | ||
|
||
location /nlib/ { | ||
alias /nahida-library/nlib/; | ||
} | ||
|
||
location /api/ { | ||
proxy_pass http://0.0.0.0:9100/; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root html; | ||
} | ||
} | ||
|
||
upstream nacos-cluster { | ||
server nacos01:9848; | ||
} | ||
|
||
server { | ||
listen 9848; | ||
server_name nacos01; | ||
|
||
location /nacos { | ||
proxy_pass http://nacos-cluster/nacos; | ||
} | ||
} | ||
|
||
server { | ||
listen 9900; | ||
server_name webhook; | ||
|
||
location ~ ^/webhook/(.*)$ { | ||
proxy_pass http://0.0.0.0:9000/hooks/$1; | ||
} | ||
} |
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,33 @@ | ||
server { | ||
listen 443 ssl; | ||
server_name drinkice.xyz; | ||
|
||
# 设置ssl证书文件路径 | ||
ssl_certificate certs/drinkice.xyz.pem; | ||
ssl_certificate_key certs/drinkice.xyz.key; | ||
|
||
ssl_session_timeout 5m; | ||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; | ||
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; | ||
ssl_prefer_server_ciphers on; | ||
add_header Strict-Transport-Security "max-age=31536000"; | ||
|
||
# 访问日志 | ||
access_log /var/log/nginx/drinkice.xyz.https.log; | ||
|
||
|
||
location /file/ { | ||
alias /nahida-library/nlib/; | ||
} | ||
|
||
location / { | ||
proxy_pass http://0.0.0.0:9876/; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root html; | ||
} | ||
} |