add static web with nginx

This commit is contained in:
Emmanuel Garette 2022-10-01 18:58:20 +02:00
parent 883bdac398
commit 52e612afba
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,5 @@
format: '0.1'
description: Nginx with static web site
depends:
- nginx-https
- base-fedora-36

View 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>

View file

@ -0,0 +1 @@
d /srv/static/ 0750 root %%nginx_owner -