Theo Chatzimichos b62616
include:
Theo Chatzimichos b62616
  - role.common.nginx
Theo Chatzimichos b62616
Theo Chatzimichos b62616
nginx:
Theo Chatzimichos b62616
  ng:
Theo Chatzimichos b62616
    servers:
Theo Chatzimichos b62616
      managed:
Theo Chatzimichos b62616
        progress.opensuse.org.conf:
Theo Chatzimichos b62616
          config:
Theo Chatzimichos b62616
            - upstream redmine:
Theo Chatzimichos b62616
                - server:
Theo Chatzimichos b62616
                    - unix:/srv/www/vhosts/redmine/tmp/sockets/redmine.socket
Theo Chatzimichos b62616
                    - fail_timeout=0
Theo Chatzimichos b62616
            - server:
Theo Chatzimichos b62616
                - listen: 80
Theo Chatzimichos b62616
                - server_tokens: 'off'
Theo Chatzimichos b62616
                # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
Theo Chatzimichos b62616
                - add_header: Strict-Transport-Security max-age=15768000
Theo Chatzimichos b62616
                - location /:
Theo Chatzimichos b62616
                    - try_files: $uri/index.html $uri.html $uri @cluster
Theo Chatzimichos b62616
                - location @cluster:
Theo Chatzimichos 13bd6f
                    - proxy_pass: http://redmine
Theo Chatzimichos b62616
                - access_log: /var/log/nginx/redmine.access.log combined
Theo Chatzimichos b62616
                - error_log: /var/log/nginx/redmine.error.log
Theo Chatzimichos d04633
          enabled: True