1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nginx: remove

This commit is contained in:
Matt Layher 2018-05-12 11:06:52 -04:00
parent 554463c66f
commit c84b28271e
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
3 changed files with 0 additions and 53 deletions

View file

@ -1,21 +0,0 @@
---
- name: install nginx
tags:
- nginx
apt:
pkg: nginx
state: installed
- name: create nginx default site configuration
tags:
- nginx
template:
src: default.j2
dest: "/etc/nginx/sites-available/default"
- name: restart nginx
tags:
- nginx
service:
name: nginx
state: restarted

View file

@ -1,29 +0,0 @@
server {
# Listen IPv4 and IPv6
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
# Set up web root, set up index pages for default site
root /usr/share/nginx/html;
index index.html index.htm;
# Identify server by name
server_name localhost;
# Use nginx standard error pages
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# Set up XML-RPC for rtorrent
location /RPC2 {
allow {{ nginx_xmlrpc_allowed }};
allow 127.0.0.1;
deny all;
scgi_pass {{ nginx_xmlrpc_host }};
include scgi_params;
}
}

View file

@ -1,3 +0,0 @@
---
nginx_xmlrpc_allowed: "192.168.1.0/24"
nginx_xmlrpc_host: "127.0.0.1:5000"