|
42 | 42 | proxy_cache_path /opt/nginx/external-cache levels=1:2 keys_zone=ext_cache:10m max_size=1g inactive=60m use_temp_path=off;
|
43 | 43 | proxy_cache_path /opt/nginx/common levels=1:2 keys_zone=common:10m max_size=4g inactive=60m use_temp_path=off;
|
44 | 44 | proxy_cache_path /opt/nginx/sw levels=1:2 keys_zone=sw:10m max_size=200m inactive=1m use_temp_path=off;
|
45 |
| - proxy_cache_path /opt/nginx/yleisviesti levels=1:2 keys_zone=yleisviesti:10m max_size=200m inactive=1m use_temp_path=off; |
46 | 45 |
|
47 | 46 | # hide server version from response
|
48 | 47 | server_tokens off;
|
@@ -345,41 +344,6 @@ http {
|
345 | 344 | }
|
346 | 345 | }
|
347 | 346 |
|
348 |
| - server { |
349 |
| - server_name dev-yleisviesti.digitransit.fi yleisviesti.hsl.fi; |
350 |
| - listen 8080; |
351 |
| - |
352 |
| - if ($http_x_forwarded_proto != "https") { |
353 |
| - return 301 https://$host$request_uri; |
354 |
| - } |
355 |
| - |
356 |
| - # Add HTTP Strict Transport Security for good measure. |
357 |
| - add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;"; |
358 |
| - |
359 |
| - location = / { |
360 |
| - proxy_pass http://yleisviestipalvelu:8080; |
361 |
| - proxy_redirect off; |
362 |
| - proxy_set_header X-Real-IP $remote_addr; |
363 |
| - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
364 |
| - proxy_set_header X-Forwarded-Host $host; |
365 |
| - proxy_cache yleisviesti; |
366 |
| - proxy_cache_valid 200 30s; |
367 |
| - proxy_cache_lock on; |
368 |
| - proxy_cache_key "$host"; |
369 |
| - add_header X-Proxy-Cache $upstream_cache_status; |
370 |
| - proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie; |
371 |
| - proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; |
372 |
| - } |
373 |
| - |
374 |
| - location / { |
375 |
| - proxy_pass http://yleisviestipalvelu:8080; |
376 |
| - proxy_redirect off; |
377 |
| - proxy_set_header X-Real-IP $remote_addr; |
378 |
| - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
379 |
| - proxy_set_header X-Forwarded-Host $host; |
380 |
| - } |
381 |
| - } |
382 |
| - |
383 | 347 | server {
|
384 | 348 | server_name digitransit.fi www.digitransit.fi dev-site.digitransit.fi;
|
385 | 349 | listen 8080;
|
|
0 commit comments