20 lines
726 B
Plaintext
20 lines
726 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
server_name api.arti24.eu;
|
|
server_tokens off;
|
|
include snippets/ssl-params.conf;
|
|
include snippets/security-headers.conf;
|
|
|
|
location / {
|
|
limit_req zone=ip_limit burst=10 nodelay;
|
|
proxy_pass http://angular-services:8800;
|
|
include snippets/proxy-headers.conf;
|
|
include snippets/proxy-optimization.conf;
|
|
|
|
# Specjalne nagłówki dla API
|
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
|
|
}
|
|
}
|