This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Runtime: Fix a few issues of NGINX API Gateway mode (#1766)
- Loading branch information
1 parent
4b4bf9a
commit b41a536
Showing
7 changed files
with
79 additions
and
39 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
2 changes: 0 additions & 2 deletions
2
python/cloudtik/runtime/nginx/conf/nginx-api-gateway-base.conf
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
19 changes: 19 additions & 0 deletions
19
python/cloudtik/runtime/nginx/conf/nginx-load-balancer-dynamic.conf
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,19 @@ | ||
http { | ||
include {%nginx.home%}/conf/upstreams/*.conf; # The load balancer upstream | ||
|
||
# This server accepts all traffic to port and passes it to the upstream. | ||
# Notice that the upstream name and the proxy_pass need to match. | ||
server { | ||
listen {%server.listen.ip%}:{%server.listen.port%}; | ||
|
||
# SSL | ||
# listen 443 ssl; | ||
# server_name domain_name; | ||
# ssl_certificate /path/to/cert.pem; | ||
# ssl_certificate_key /path/to/private_key.pem; | ||
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
|
||
# Routers definitions | ||
include {%nginx.home%}/conf/routers/*.conf; | ||
} | ||
} |
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
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