From c17e6cd7ceefea70d2abf50d0e1582767b9416b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BCckemeyer?= <gero.lueckemeyer@hft-stuttgart.de> Date: Fri, 26 Jan 2024 12:05:11 +0000 Subject: [PATCH] Added nginx example conf. caching still to be configured according to external system demands --- conf/nginx.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 conf/nginx.conf diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..8423dc1 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,35 @@ +worker_processes 5; +worker_rlimit_nofile 8192; + +events { + worker_connections 4096; +} + +http { +# include conf/mime.types; +# include /etc/nginx/proxy.conf; +# include /etc/nginx/fastcgi.conf; +# index index.html index.htm index.php; + + default_type application/octet-stream; + sendfile on; + tcp_nopush on; + server_names_hash_bucket_size 128; + + proxy_cache_path /opt/cache levels=1:2 keys_zone=dta_cache:10m max_size=10g inactive=60m use_temp_path=off; + + server { + listen 8080; + + location / { + proxy_cache dta_cache; + proxy_cache_background_update on; + proxy_cache_lock on; + proxy_cache_key "$scheme$host$request_uri"; + proxy_cache_valid 200 302 1d; + proxy_cache_methods GET HEAD POST; + + proxy_pass http://backendcomposedtt:8080/; + } + } +} -- GitLab