26 lines
572 B
Nginx Configuration File
26 lines
572 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
# upstream my-microservice {
|
|
# server my-microservice:8083;
|
|
# }
|
|
|
|
include /etc/nginx/cors_preflight.conf;
|
|
|
|
server {
|
|
# location /my-microservice {
|
|
# if ($request_method = 'OPTIONS') {
|
|
# return 204;
|
|
# }
|
|
# proxy_pass http://my-microservice/my-microservice;
|
|
# }
|
|
|
|
listen 4443 ssl;
|
|
ssl_certificate /etc/nginx/ssl/certificate.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/private.key;
|
|
|
|
resolver 127.0.0.11;
|
|
}
|
|
} |