[fix] role:gitea-and-nginx
This commit is contained in:
parent
573a98965d
commit
fd9a8ee494
|
|
@ -1,4 +1,4 @@
|
||||||
{% macro gitea_common %}
|
{% macro gitea_common() %}
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:3456;
|
proxy_pass http://localhost:3456;
|
||||||
client_max_body_size 20M;
|
client_max_body_size 20M;
|
||||||
|
|
@ -14,7 +14,7 @@ server {
|
||||||
{% if var_gitea_and_nginx_tls_mode == 'force' %}
|
{% if var_gitea_and_nginx_tls_mode == 'force' %}
|
||||||
return 301 https://$http_host$request_uri;
|
return 301 https://$http_host$request_uri;
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ gitea_common() }}
|
{{ gitea_common() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,6 +29,6 @@ server {
|
||||||
ssl_certificate /etc/ssl/fullchains/{{var_gitea_and_nginx_domain}}.pem;
|
ssl_certificate /etc/ssl/fullchains/{{var_gitea_and_nginx_domain}}.pem;
|
||||||
include /etc/nginx/ssl-hardening.conf;
|
include /etc/nginx/ssl-hardening.conf;
|
||||||
|
|
||||||
{{ gitea_common() }}
|
{{ gitea_common() }}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue