|
| 1 | +--- |
| 2 | + |
| 3 | +# PLEASE NOTE THAT THE PASSWORD VALUES USED HERE ARE NOT SAFE |
| 4 | + |
| 5 | +# |
| 6 | +# atom role |
| 7 | +# |
| 8 | + |
| 9 | +atom_path: "/usr/share/nginx/atom" |
| 10 | +atom_repository_url: "https://github.com/artefactual/binder.git" |
| 11 | +atom_repository_version: "stable/0.8.x" |
| 12 | +atom_config_db_hostname: "127.0.0.1" |
| 13 | +atom_config_db_name: "atom" |
| 14 | +atom_config_db_username: "atom-user" |
| 15 | +atom_config_db_password: "ATOMPASSWORD" |
| 16 | +atom_config_db_port: "3306" |
| 17 | +atom_es_host: "127.0.0.1" |
| 18 | +atom_es_port: "9200" |
| 19 | +atom_es_batch_size: "100" |
| 20 | +atom_es_config_version: "2.1" |
| 21 | +atom_mysql_user_name: "atom-user" |
| 22 | +atom_mysql_user_pass: "ATOMPASSWORD" |
| 23 | +atom_mysql_user_priv: "atom.*:ALL,GRANT" |
| 24 | +atom_mysql_user_host: "%" |
| 25 | +atom_drmc: "yes" |
| 26 | +atom_drmc_es_scripts: "yes" |
| 27 | +atom_worker_old_config: "yes" |
| 28 | +atom_pool_php_envs: |
| 29 | + ATOM_DRMC_TMS_URL: "http://artefactual.mockable.io/tms" |
| 30 | + ARCHIVEMATICA_SS_HOST: "192.168.168.192" |
| 31 | + ARCHIVEMATICA_SS_PORT: "8000" |
| 32 | + ARCHIVEMATICA_SS_PIPELINE_UUID: "CHANGE_ME" |
| 33 | + ARCHIVEMATICA_SS_USER: "test" |
| 34 | + ARCHIVEMATICA_SS_API_KEY: "CHANGE_ME" |
| 35 | + |
| 36 | +# |
| 37 | +# nginx role |
| 38 | +# |
| 39 | + |
| 40 | +nginx_configs: |
| 41 | + atom_backend: |
| 42 | + - upstream atom { |
| 43 | + server unix:/var/run/php-fpm.atom.sock; |
| 44 | + } |
| 45 | + |
| 46 | +nginx_sites: |
| 47 | + atom: |
| 48 | + - listen 80 |
| 49 | + - set $atom_path {{ atom_path }} |
| 50 | + - root $atom_path |
| 51 | + - server_name _ |
| 52 | + - client_max_body_size 72M |
| 53 | + - location /api/docs { |
| 54 | + index index.html; |
| 55 | + alias $atom_path/plugins/arDrmcPlugin/frontend/docs/build/html; |
| 56 | + } |
| 57 | + - set $alt_request_uri $request_uri |
| 58 | + - location /drmc/ { |
| 59 | + error_page 404 = @drmc; |
| 60 | + log_not_found off; |
| 61 | + set $alt_request_uri /drmc/index; |
| 62 | + } |
| 63 | + - location @drmc { |
| 64 | + rewrite ^/drmc/(.*)$ /index.php last; |
| 65 | + } |
| 66 | + - location / { |
| 67 | + try_files $uri /index.php?$args; |
| 68 | + } |
| 69 | + - location ~ /\. { |
| 70 | + deny all; |
| 71 | + return 404; |
| 72 | + } |
| 73 | + - location ~* (\.yml|\.ini|\.tmpl)$ { |
| 74 | + deny all; |
| 75 | + return 404; |
| 76 | + } |
| 77 | + - location ~* /(?:uploads|files)/.*\.php$ { |
| 78 | + deny all; |
| 79 | + return 404; |
| 80 | + } |
| 81 | + - location ~ ^/(index|qubit_dev)\.php(/|$) { |
| 82 | + include /etc/nginx/fastcgi_params; |
| 83 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| 84 | + fastcgi_param REQUEST_URI $alt_request_uri; |
| 85 | + fastcgi_split_path_info ^(.+\.php)(/.*)$; |
| 86 | + fastcgi_pass atom; |
| 87 | + } |
| 88 | + - location ~* \.php$ { |
| 89 | + deny all; |
| 90 | + return 404; |
| 91 | + } |
| 92 | + |
| 93 | +# |
| 94 | +# elasticsearch role |
| 95 | +# |
| 96 | + |
| 97 | +elasticsearch_version: "1.7.6" |
| 98 | +elasticsearch_heap_size: "1g" |
| 99 | + |
| 100 | +# |
| 101 | +# percona role |
| 102 | +# |
| 103 | + |
| 104 | +mysql_version_major: "5" |
| 105 | +mysql_version_minor: "5" |
| 106 | + |
| 107 | +mysql_databases: |
| 108 | + - name: "atom" |
| 109 | + collation: "utf8_general_ci" |
| 110 | + encoding: "utf8" |
| 111 | + |
| 112 | +mysql_users: |
| 113 | + - name: "{{ atom_mysql_user_name }}" |
| 114 | + pass: "{{ atom_mysql_user_pass }}" |
| 115 | + priv: "{{ atom_mysql_user_priv }}" |
| 116 | + host: "{{ atom_mysql_user_host }}" |
| 117 | + |
| 118 | +mysql_root_password: "MYSQLROOTPASSWORD" |
| 119 | +mysql_bind_address: "0.0.0.0" |
0 commit comments