mirror of
https://github.com/ruanbekker/dev-environment-vagrant.git
synced 2026-08-25 09:11:00 +02:00
Add ansible role
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ nginx_server_name }};
|
||||
root {{ nginx_web_root }};
|
||||
|
||||
index index.html;
|
||||
charset utf-8;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html$is_args$args;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location ~ /\.(?!well-known).* {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{{ webpage_title }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="styles.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="content">
|
||||
<div class="title m-b-md">
|
||||
{{ webpage_title }}
|
||||
</div>
|
||||
|
||||
<div class="links">
|
||||
<a href="{{ webpage_url }}">{{ webpage_text }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,37 @@
|
||||
user {{ nginx_user }};
|
||||
worker_processes auto;
|
||||
pid /run/nginx.pid;
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
# Basic Settings
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# SSL Settings
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
# Logging Settings
|
||||
log_format main {{ nginx_log_format|indent(23) }};
|
||||
|
||||
access_log {{ nginx_log_path }}/{{ nginx_access_log_filename }}.log {{ access_log_args }};
|
||||
error_log {{ nginx_log_path }}/{{ nginx_error_log_filename }}.log;
|
||||
|
||||
# Gzip Settings
|
||||
gzip on;
|
||||
|
||||
# Virtual Host Configs
|
||||
include {{ nginx_conf_path }}/*.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user