Rework to add endpoint creation and better handling
This commit is contained in:
0
nginx/active/manual/custom/.gitkeep
Normal file
0
nginx/active/manual/custom/.gitkeep
Normal file
0
nginx/active/manual/grpc/.gitkeep
Normal file
0
nginx/active/manual/grpc/.gitkeep
Normal file
0
nginx/active/manual/http/.gitkeep
Normal file
0
nginx/active/manual/http/.gitkeep
Normal file
0
nginx/active/manual/http2/.gitkeep
Normal file
0
nginx/active/manual/http2/.gitkeep
Normal file
0
nginx/active/manual/stream/.gitkeep
Normal file
0
nginx/active/manual/stream/.gitkeep
Normal file
0
nginx/inactive/automatic/grpc/.gitkeep
Normal file
0
nginx/inactive/automatic/grpc/.gitkeep
Normal file
0
nginx/inactive/automatic/http/.gitkeep
Normal file
0
nginx/inactive/automatic/http/.gitkeep
Normal file
0
nginx/inactive/automatic/http2/.gitkeep
Normal file
0
nginx/inactive/automatic/http2/.gitkeep
Normal file
0
nginx/inactive/automatic/stream/.gitkeep
Normal file
0
nginx/inactive/automatic/stream/.gitkeep
Normal file
0
nginx/inactive/manual/custom/.gitkeep
Normal file
0
nginx/inactive/manual/custom/.gitkeep
Normal file
0
nginx/inactive/manual/grpc/.gitkeep
Normal file
0
nginx/inactive/manual/grpc/.gitkeep
Normal file
0
nginx/inactive/manual/http/.gitkeep
Normal file
0
nginx/inactive/manual/http/.gitkeep
Normal file
@@ -12,9 +12,6 @@ server {
|
||||
# endpoint port
|
||||
listen PORT ssl;
|
||||
|
||||
# Uncomment if http2
|
||||
# http2 on;
|
||||
|
||||
# Here put the unencrypted
|
||||
# endpoint port
|
||||
location / {
|
||||
0
nginx/inactive/manual/http2/.gitkeep
Normal file
0
nginx/inactive/manual/http2/.gitkeep
Normal file
50
nginx/inactive/manual/http2/conf.example
Normal file
50
nginx/inactive/manual/http2/conf.example
Normal file
@@ -0,0 +1,50 @@
|
||||
# Example conf
|
||||
|
||||
|
||||
# Example TLS endpoint
|
||||
server {
|
||||
|
||||
# Use this to avoid port scanners to know
|
||||
# what you are using
|
||||
more_clear_headers Server;
|
||||
|
||||
# Here put the TLS termination
|
||||
# endpoint port
|
||||
listen PORT ssl;
|
||||
http2 on;
|
||||
|
||||
# Here put the unencrypted
|
||||
# endpoint port
|
||||
location / {
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
|
||||
# Put relevant keys here
|
||||
ssl_certificate /services-keys/Example/cert.pem;
|
||||
ssl_certificate_key /services-keys/Example/key.pem;
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
|
||||
}
|
||||
|
||||
# Example Termination endpoint
|
||||
server {
|
||||
|
||||
# Use this to avoid port scanners to know
|
||||
# what you are using
|
||||
more_clear_headers Server;
|
||||
|
||||
# Here put the unencrypted
|
||||
# endpoint port
|
||||
listen 127.0.0.1:8080;
|
||||
|
||||
# Uncomment if http2
|
||||
# http2 on;
|
||||
|
||||
# Here put the original
|
||||
# service endpoint port
|
||||
location / {
|
||||
proxy_pass https://127.0.0.1:PORT;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
0
nginx/inactive/manual/stream/.gitkeep
Normal file
0
nginx/inactive/manual/stream/.gitkeep
Normal file
@@ -34,13 +34,25 @@ http {
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
|
||||
# Includes virtual hosts configs.
|
||||
include /etc/nginx/http/*.conf;
|
||||
include /etc/nginx/grpc/*.conf;
|
||||
# Includes automatic virtual hosts configs.
|
||||
include /etc/nginx/active/automatic/grpc/*.conf;
|
||||
include /etc/nginx/active/automatic/http/*.conf;
|
||||
include /etc/nginx/active/automatic/http2/*.conf;
|
||||
|
||||
# Includes manual configs
|
||||
include /etc/nginx/active/manual/grpc/*.conf;
|
||||
include /etc/nginx/active/manual/http/*.conf;
|
||||
include /etc/nginx/active/manual/http2/*.conf;
|
||||
include /etc/nginx/active/manual/custom/*.conf;
|
||||
|
||||
}
|
||||
|
||||
stream {
|
||||
|
||||
include /etc/nginx/stream*.conf;
|
||||
# Include automatic stream config
|
||||
include /etc/nginx/active/automatic/stream/*.conf;
|
||||
|
||||
# Include manual configs
|
||||
include /etc/nginx/active/manual/stream/*.conf;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user