Skip to content

Commit

Permalink
add nginx template to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Rebagliati committed Sep 8, 2020
1 parent f01fa1e commit 98c45d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ include faraday/config/default.xml
include faraday/server/default.ini
include requirements.txt
include requirements_dev.txt
include faraday/server/commands/templates/nginx_config.j2
2 changes: 1 addition & 1 deletion faraday/server/commands/nginx_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def generate_nginx_config(fqdn, port, ws_port, ssl_certificate, ssl_key, multite
static_path = f"/opt/faraday/lib/python{version.major}.{version.minor}/site-packages/faraday/server/www/"
templates_path = Path(__file__).parent / 'templates'
file_loader = FileSystemLoader(templates_path)
env = Environment(loader=file_loader)
env = Environment(loader=file_loader, autoescape=True)
template = env.get_template('nginx_config.j2')
output = template.render(**{'fqdn': fqdn, 'static_path': static_path, 'faraday_port': port,
'faraday_ws_port': ws_port, 'ssl_certificate': ssl_certificate, 'ssl_key': ssl_key,
Expand Down

0 comments on commit 98c45d8

Please sign in to comment.