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
            - server:
Theo Chatzimichos b62616
                - listen: 80
6bd360
                - server_name: progress.opensuse.org
Theo Chatzimichos b62616
                - server_tokens: 'off'
6bd360
                - client_max_body_size: 20m
ad09b1
                # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
Theo Chatzimichos b62616
                - add_header: Strict-Transport-Security max-age=15768000
6bd360
                - access_log: /var/log/nginx/redmine.access.log combined
6bd360
                - error_log: /var/log/nginx/redmine.error.log
Theo Chatzimichos b62616
                - location /:
Theo Chatzimichos b62616
                    - try_files: $uri/index.html $uri.html $uri @cluster
Theo Chatzimichos b62616
                - location @cluster:
6bd360
                    - proxy_pass: http://127.0.0.1:3000
6bd360
                    - proxy_set_header: Host $host
6bd360
                    - proxy_set_header: X-Forwarded-For $proxy_add_x_forwarded_for
6bd360
                - error_page: 500 502 503 504 /50x.html
6bd360
                - location = /50x.html:
6bd360
                    - root: /srv/www/htdocs
Theo Chatzimichos d04633
          enabled: True