Changed Structure to reflect actual use
This commit is contained in:
0
nginx/grpc/.gitkeep
Normal file
0
nginx/grpc/.gitkeep
Normal file
38
nginx/grpc/conf.example
Normal file
38
nginx/grpc/conf.example
Normal file
@@ -0,0 +1,38 @@
|
||||
# Example conf
|
||||
|
||||
|
||||
# Example TLS endpoint
|
||||
server {
|
||||
|
||||
more_clear_headers Server;
|
||||
|
||||
listen PORT ssl;
|
||||
http2 on;
|
||||
|
||||
location / {
|
||||
grpc_pass grpc://127.0.0.1:PORT;
|
||||
}
|
||||
|
||||
|
||||
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 {
|
||||
|
||||
more_clear_headers Server;
|
||||
|
||||
listen 127.0.0.1:PORT;
|
||||
http2 on;
|
||||
|
||||
# Here put the service you need
|
||||
location / {
|
||||
grpc_pass grpcs://127.0.0.1:PORT;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
0
nginx/http/.gitkeep
Normal file
0
nginx/http/.gitkeep
Normal file
37
nginx/http/conf.example
Normal file
37
nginx/http/conf.example
Normal file
@@ -0,0 +1,37 @@
|
||||
# Example conf
|
||||
|
||||
|
||||
# Example TLS endpoint
|
||||
server {
|
||||
|
||||
listen PORT ssl;
|
||||
|
||||
more_clear_headers Server;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
|
||||
|
||||
|
||||
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 {
|
||||
|
||||
more_clear_headers Server;
|
||||
|
||||
listen 127.0.0.1:8080;
|
||||
|
||||
# Here put the service you need
|
||||
location / {
|
||||
proxy_pass https://127.0.0.1:PORT;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
46
nginx/nginx.conf
Normal file
46
nginx/nginx.conf
Normal file
@@ -0,0 +1,46 @@
|
||||
user nginx;
|
||||
|
||||
# Set number of worker processes automatically based on number of CPU cores.
|
||||
worker_processes auto;
|
||||
|
||||
# Load Modules
|
||||
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
||||
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
||||
|
||||
|
||||
# Enables the use of JIT for regular expressions to speed-up their processing.
|
||||
pcre_jit on;
|
||||
|
||||
events {
|
||||
# The maximum number of simultaneous connections that can be opened by
|
||||
# a worker process.
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
more_clear_headers Server;
|
||||
|
||||
# Helper variable for proxying websockets.
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
|
||||
# Specifies the main log format.
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
|
||||
# Includes virtual hosts configs.
|
||||
include /etc/nginx/http/*.conf;
|
||||
include /etc/nginx/grpc/*.conf;
|
||||
}
|
||||
|
||||
stream {
|
||||
|
||||
include /etc/nginx/stream*.conf;
|
||||
|
||||
}
|
||||
0
nginx/quic/.gitkeep
Normal file
0
nginx/quic/.gitkeep
Normal file
0
nginx/stream/.gitkeep
Normal file
0
nginx/stream/.gitkeep
Normal file
Reference in New Issue
Block a user