forked from stove/dataset
add static web with nginx
This commit is contained in:
parent
883bdac398
commit
52e612afba
3 changed files with 21 additions and 0 deletions
5
seed/nginx-static/applicationservice.yml
Normal file
5
seed/nginx-static/applicationservice.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
format: '0.1'
|
||||||
|
description: Nginx with static web site
|
||||||
|
depends:
|
||||||
|
- nginx-https
|
||||||
|
- base-fedora-36
|
15
seed/nginx-static/dictionaries/22_nginx_static.xml
Normal file
15
seed/nginx-static/dictionaries/22_nginx_static.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<rougail version="0.10">
|
||||||
|
<services>
|
||||||
|
<service name='nginx' target='multi-user'>
|
||||||
|
<file source="tmpfiles.nginx_static.conf">/tmpfiles.d/0static.conf</file>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
<variables>
|
||||||
|
<family name="nginx">
|
||||||
|
<variable name="nginx_root" redefine="True" mandatory='True'>
|
||||||
|
<value>/srv/static</value>
|
||||||
|
</variable>
|
||||||
|
</family>
|
||||||
|
</variables>
|
||||||
|
</rougail>
|
1
seed/nginx-static/templates/tmpfiles.nginx_static.conf
Normal file
1
seed/nginx-static/templates/tmpfiles.nginx_static.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
d /srv/static/ 0750 root %%nginx_owner -
|
Loading…
Reference in a new issue