GithubHelp home page GithubHelp logo

prophets / ansible.docker-nginx-proxy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 4 KB

Ansible role to create a systemd service for jwilder/nginx and optional docker-letsencrypt-nginx-proxy-companion docker container.

ansible.docker-nginx-proxy's Introduction

Role Name

Systemd service for jwilder/nginx docker container and optional docker-letsencrypt-nginx-proxy-companion.

Requirements

Any OS capable of running Docker and systemd.

Role Variables

Proxy container configuration

The name to use for running the container.

docker_proxy_container_name: nginx_proxy

Configuration path for "proxy-wide" settings. See Proxy-wide configuration.

docker_proxy_wide_config_path: /usr/local/etc/nginx_proxy_wide.conf

The configuration to put in the "proxy-wide" configuration. To disable and use a custom config file with docker_proxy_wide_config_path set this variable to a falsy boolean value.

docker_proxy_wide_config: |
  client_max_body_size 100m;

Optional directory path with basic authentication configurations. See Basic Authentication Support.

docker_proxy_htpasswd_dir_path: /usr/local/etc/nginx_proxy/htpasswd

Optional directory path with SSL certificates. See SSL support.

docker_proxy_certs_dir_path: /usr/local/etc/nginx_proxy/certs

Optional directory path with virtual host configurations. See Per virtual host configuration and Per virtual host location configuration.

docker_proxy_vhosts_dir_path: /usr/local/etc/nginx_proxy/vhosts

Use the Let's Encrypt companion container.

docker_use_letsencrypt_companion: yes

The name to use for running the Let's Encrypt companion container.

docker_letsencrypt_companion_container_name: letsencrypt_proxy_companion

Systemd service unit names

Location to place the systemd init configuration.

docker_proxy_service_systemd: /etc/systemd/system

Systemd service name for the proxy service.

docker_proxy_service_name: nginx_proxy

Systemd service name for the Let's Encrypt companion service.

docker_letsencrypt_companion_service_name: letsencrypt_proxy_companion

Dependencies

  • geerlingguy.docker

Example Playbook

- hosts: dockerhosts
  become: yes
  roles:
    - name: prophets.docker-proxy

License

BSD

Author Information

Stijn Huyberechts for prophets.be

ansible.docker-nginx-proxy's People

Contributors

huyby avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kernt ms5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.