Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1,81 @@
|
|||
user {{ nginx_user }};
|
||||
|
||||
error_log {{ nginx_error_log }};
|
||||
pid {{ nginx_pidfile }};
|
||||
|
||||
{% block worker %}
|
||||
worker_processes {{ nginx_worker_processes }};
|
||||
{% endblock %}
|
||||
|
||||
{% if nginx_extra_conf_options %}
|
||||
{{ nginx_extra_conf_options }}
|
||||
{% endif %}
|
||||
|
||||
{% block events %}
|
||||
events {
|
||||
worker_connections {{ nginx_worker_connections }};
|
||||
multi_accept {{ nginx_multi_accept }};
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
http {
|
||||
{% block http_begin %}{% endblock %}
|
||||
|
||||
{% block http_basic %}
|
||||
include {{ nginx_mime_file_path }};
|
||||
default_type application/octet-stream;
|
||||
|
||||
server_names_hash_bucket_size {{ nginx_server_names_hash_bucket_size }};
|
||||
|
||||
client_max_body_size {{ nginx_client_max_body_size }};
|
||||
|
||||
log_format main {{ nginx_log_format|indent(23) }};
|
||||
|
||||
access_log {{ nginx_access_log }};
|
||||
|
||||
sendfile {{ nginx_sendfile }};
|
||||
tcp_nopush {{ nginx_tcp_nopush }};
|
||||
tcp_nodelay {{ nginx_tcp_nodelay }};
|
||||
|
||||
keepalive_timeout {{ nginx_keepalive_timeout }};
|
||||
keepalive_requests {{ nginx_keepalive_requests }};
|
||||
|
||||
server_tokens {{ nginx_server_tokens }};
|
||||
{% if nginx_proxy_cache_path %}
|
||||
proxy_cache_path {{ nginx_proxy_cache_path }};
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block http_gzip %}
|
||||
# gzip on;
|
||||
{% endblock %}
|
||||
|
||||
{% if nginx_extra_http_options %}
|
||||
{{ nginx_extra_http_options|indent(4, False) }}
|
||||
{% endif %}
|
||||
|
||||
{% block http_upstream %}
|
||||
{% for upstream in nginx_upstreams %}
|
||||
upstream {{ upstream.name }} {
|
||||
{% if upstream.strategy is defined %}
|
||||
{{ upstream.strategy }};
|
||||
{% endif %}
|
||||
{% for server in upstream.servers %}
|
||||
server {{ server }};
|
||||
{% endfor %}
|
||||
{% if upstream.keepalive is defined %}
|
||||
keepalive {{ upstream.keepalive }};
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block http_includes %}
|
||||
include {{ nginx_conf_path }}/*.conf;
|
||||
{% if nginx_conf_path != nginx_vhost_path %}
|
||||
include {{ nginx_vhost_path }}/*;
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block http_end %}{% endblock %}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
[nginx]
|
||||
name=nginx repo
|
||||
baseurl=http://nginx.org/packages/centos/{{ ansible_distribution_major_version }}/$basearch/
|
||||
gpgcheck=0
|
||||
enabled=1
|
47
box/provisioning/roles/geerlingguy.nginx/templates/vhost.j2
Normal file
47
box/provisioning/roles/geerlingguy.nginx/templates/vhost.j2
Normal file
|
@ -0,0 +1,47 @@
|
|||
{% block server_redirect %}
|
||||
{% if item.server_name_redirect is defined %}
|
||||
server {
|
||||
listen {{ item.listen | default('80') }};
|
||||
server_name {{ item.server_name_redirect }};
|
||||
return 301 $scheme://{{ item.server_name.split(' ')[0] }}$request_uri;
|
||||
}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
server {
|
||||
{% block server_begin %}{% endblock %}
|
||||
|
||||
{% block server_basic -%}
|
||||
listen {{ item.listen | default('80') }};
|
||||
|
||||
{% if item.server_name is defined %}
|
||||
server_name {{ item.server_name }};
|
||||
{% endif %}
|
||||
|
||||
{% if item.root is defined %}
|
||||
root {{ item.root }};
|
||||
{% endif %}
|
||||
|
||||
index {{ item.index | default('index.html index.htm') }};
|
||||
|
||||
{% if item.error_page is defined %}
|
||||
error_page {{ item.error_page }};
|
||||
{% endif %}
|
||||
{% if item.access_log is defined %}
|
||||
access_log {{ item.access_log }};
|
||||
{% endif %}
|
||||
{% if item.error_log is defined %}
|
||||
error_log {{ item.error_log }} error;
|
||||
{% endif %}
|
||||
|
||||
{% if item.return is defined %}
|
||||
return {{ item.return }};
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block server_end %}{% endblock %}
|
||||
|
||||
{% if item.extra_parameters is defined %}
|
||||
{{ item.extra_parameters|indent(4) }}
|
||||
{% endif %}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue