roles/nginx: Add support for gitea
gitea hosts are basically webservers, but we need to proxy pass. I am setting up gitea itself manually for now.
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
{% set enable_hsts = item.enable_hsts | default(False) %}
|
||||
{% set has_wordpress = item.has_wordpress | default(False) %}
|
||||
{% set needs_php = item.needs_php | default(False) %}
|
||||
{% set has_gitea = item.has_gitea | default(False) %}
|
||||
|
||||
# http -> https vhost
|
||||
server {
|
||||
@ -49,6 +50,10 @@ server {
|
||||
{% include 'wordpress.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% if has_gitea == True %}
|
||||
{% include 'gitea.j2' %}
|
||||
{% endif %}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
|
Reference in New Issue
Block a user