mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
58 lines
1.2 KiB
Plaintext
58 lines
1.2 KiB
Plaintext
#user nobody;
|
|
worker_processes 1;
|
|
|
|
#error_log logs/error.log;
|
|
#error_log logs/error.log notice;
|
|
#error_log logs/error.log info;
|
|
|
|
#pid logs/nginx.pid;
|
|
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
# '$status $body_bytes_sent "$http_referer" '
|
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /var/log/nginx/proxy_access.log;
|
|
error_log /var/log/nginx/proxy_error.log;
|
|
|
|
sendfile on;
|
|
#tcp_nopush on;
|
|
|
|
#keepalive_timeout 0;
|
|
keepalive_timeout 180s;
|
|
send_timeout 180s;
|
|
|
|
#gzip on;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name frontend;
|
|
|
|
location /api {
|
|
proxy_pass http://htwkalender-backend:8090;
|
|
client_max_body_size 20m;
|
|
proxy_connect_timeout 600s;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
send_timeout 600s;
|
|
}
|
|
|
|
location /_ {
|
|
proxy_pass http://htwkalender-backend:8090;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://htwkalender-frontend:8000;
|
|
}
|
|
}
|
|
}
|