26 lines
643 B
Plaintext
26 lines
643 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
server_name {{ gerrit_config_canonical_domain }};
|
||
|
|
||
|
location ^~ / {
|
||
|
proxy_pass {{ gerrit_httpd_proxy_url }};
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header Host $host;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443;
|
||
|
server_name {{ gerrit_config_canonical_domain }};
|
||
|
|
||
|
ssl on;
|
||
|
ssl_certificate /etc/pki/tls/certs/{{ ansible_fqdn }}.crt;
|
||
|
ssl_certificate_key /etc/pki/tls/private/{{ ansible_fqdn }}.key;
|
||
|
|
||
|
location ^~ / {
|
||
|
proxy_pass {{ gerrit_httpd_proxy_url }};
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header Host $host;
|
||
|
}
|
||
|
}
|