forked from mtusi2026/mtusi2026lab7
41 lines
871 B
Nginx Configuration File
41 lines
871 B
Nginx Configuration File
worker_processes auto;
|
|
pid /tmp/nginx.pid;
|
|
error_log /dev/stderr warn;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
access_log /dev/stdout;
|
|
server_tokens off;
|
|
|
|
resolver 127.0.0.11 valid=10s ipv6=off;
|
|
|
|
client_body_temp_path /var/cache/nginx/client_temp;
|
|
proxy_temp_path /var/cache/nginx/proxy_temp;
|
|
|
|
client_max_body_size 10m;
|
|
|
|
upstream api_backend {
|
|
zone api_backend 64k;
|
|
server api:8443 resolve;
|
|
}
|
|
|
|
server {
|
|
listen 8443 ssl;
|
|
server_name localhost;
|
|
|
|
ssl_certificate /run/tls/nginx.crt;
|
|
ssl_certificate_key /run/tls/nginx.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_session_cache shared:SSL:10m;
|
|
ssl_session_timeout 10m;
|
|
|
|
location / {
|
|
proxy_pass https://api_backend;
|
|
include /etc/nginx/proxy-common.conf;
|
|
}
|
|
}
|
|
}
|