Replaced hardcoded values with variables.

Deployment follows a more template based configuration. Although this commit solves many issues, it introduces a bug with nginx. Deployment fails with "Testing nginx configuration: nginx: [emerg] could not build the proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64". Looking into the problem.