Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.44 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.44 KB

djp-httpd

A ddb jsonnet package (djp).

Description

Apache Http Server djp package.

Snippet

  • ddb.yml
cookiecutter:
  templates:
    - template: gh:inetum-orleans/djp-httpd
      extra_context:
        httpd_version: "2.4"
  • docker-compose.yml.jsonnet
ddb.Compose(
  ddb.with(
    import '.docker/httpd/djp.libjsonnet',
    params={domain: ddb.domain, vhost: ['/.docker/httpd/vhost.conf']}
  )
)

Parameters

name type description
domain string Description of first parameter
vhost string[] Path to VirtualHost configuration files

Tips

Enable additional modules

You can enable additional modules inside Dockerfile.jinja.

RUN sed -i '/LoadModule proxy_module/s/^#//g' /usr/local/apache2/conf/httpd.conf
RUN sed -i '/LoadModule proxy_http_module/s/^#//g' /usr/local/apache2/conf/httpd.conf
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf

Usage

Please check jsonnet feature to understand how to include a djp package inside a ddb project.

Looking for other djp packages ? Check github repositories starting with djp-.