32 lines
966 B
Plaintext
32 lines
966 B
Plaintext
|
# Ansible managed file
|
||
|
# DO NOT MANUALLY EDIT
|
||
|
#
|
||
|
server {
|
||
|
server_name {{ omni_compose_apps.bitwarden.published.host }};
|
||
|
listen 443 ssl;
|
||
|
root /usr/share/nginx/html;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://localhost:{{ omni_compose_apps.bitwarden.published.8080 }}/;
|
||
|
proxy_set_header Host $host;
|
||
|
}
|
||
|
|
||
|
ssl_certificate /etc/letsencrypt/live/{{ omni_compose_apps.bitwarden.published.host }}/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/{{ omni_compose_apps.bitwarden.published.host }}/privkey.pem;
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
server_name {{ omni_compose_apps.bitwarden.published.host }};
|
||
|
listen 80;
|
||
|
root /usr/share/nginx/html;
|
||
|
|
||
|
if ($host = {{ omni_compose_apps.bitwarden.published.host }}) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
return 404;
|
||
|
}
|
||
|
#
|
||
|
# EOF
|