feat(provision): refactor to add other setup examples
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / static / git-logo.png
diff --git a/tools/salt-install/config_examples/single_host/single_hostname/nginx_webshell_configuration.sls b/tools/salt-install/config_examples/single_host/single_hostname/nginx_webshell_configuration.sls
deleted file mode 100644 (file)
index dac6061..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
----
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-### NGINX
-nginx:
-  ### SERVER
-  server:
-    config:
-
-      ### STREAMS
-      http:
-        upstream webshell_upstream:
-          - server: 'shell.internal:4200 fail_timeout=10s'
-
-  ### SITES
-  servers:
-    managed:
-      arvados_webshell_default:
-        enabled: true
-        overwrite: true
-        config:
-          - server:
-            - server_name: __HOSTNAME__
-            - listen:
-              - __WEBSHELL_EXT_SSL_PORT__
-            - location /.well-known:
-              - root: /var/www
-            - location /:
-              - return: '301 https://$host$request_uri'
-
-      arvados_webshell_ssl:
-        enabled: true
-        overwrite: true
-        config:
-          - server:
-            - server_name: __HOSTNAME__
-            - listen:
-              - __WEBSHELL_EXT_SSL_PORT__ http2 ssl
-            - index: index.html index.htm
-            - location /__HOSTNAME__:
-              - proxy_pass: 'http://webshell_upstream'
-              - proxy_read_timeout: 90
-              - proxy_connect_timeout: 90
-              - proxy_set_header: 'Host $http_host'
-              - proxy_set_header: 'X-Real-IP $remote_addr'
-              - proxy_set_header: X-Forwarded-Proto https
-              - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
-              - proxy_ssl_session_reuse: 'off'
-
-              - "if ($request_method = 'OPTIONS')":
-                - add_header: "'Access-Control-Allow-Origin' '*'"
-                - add_header: "'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'"
-                - add_header: "'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'"
-                - add_header: "'Access-Control-Max-Age' 1728000"
-                - add_header: "'Content-Type' 'text/plain charset=UTF-8'"
-                - add_header: "'Content-Length' 0"
-                - return: 204
-
-              - "if ($request_method = 'POST')":
-                - add_header: "'Access-Control-Allow-Origin' '*'"
-                - add_header: "'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'"
-                - add_header: "'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'"
-
-              - "if ($request_method = 'GET')":
-                - add_header: "'Access-Control-Allow-Origin' '*'"
-                - add_header: "'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'"
-                - add_header: "'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'"
-
-            - include: 'snippets/arvados-snakeoil.conf'
-            - access_log: /var/log/nginx/webshell.__CLUSTER__.__DOMAIN__.access.log combined
-            - error_log: /var/log/nginx/webshell.__CLUSTER__.__DOMAIN__.error.log
-