mirror of
https://github.com/BastilleBSD/templates.git
synced 2025-12-11 17:29:46 +01:00
consolidated repository cleanup
This commit is contained in:
3
www/adguardhome/Bastillefile
Normal file
3
www/adguardhome/Bastillefile
Normal file
@@ -0,0 +1,3 @@
|
||||
PKG ca_root_nss adguardhome
|
||||
SYSRC adguardhome_enable=YES
|
||||
SERVICE adguardhome start
|
||||
29
www/adguardhome/LICENSE
Normal file
29
www/adguardhome/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
15
www/adguardhome/README.md
Normal file
15
www/adguardhome/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/adguardhome/commits/main)
|
||||
|
||||
## adguardhome
|
||||
Bastille Template for Adguard Home
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/adguardhome
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/adguardhome
|
||||
```
|
||||
5
www/apache/Bastillefile
Normal file
5
www/apache/Bastillefile
Normal file
@@ -0,0 +1,5 @@
|
||||
PKG apache24
|
||||
SYSRC apache24_enable=YES
|
||||
SYSRC apache24_flags=""
|
||||
CMD httpd -t
|
||||
SERVICE apache24 start
|
||||
29
www/apache/LICENSE
Normal file
29
www/apache/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
17
www/apache/README.md
Normal file
17
www/apache/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/apache/commits/master)
|
||||
|
||||
## apache
|
||||
Bastille template to bootstrap Apache
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/apache
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/apache
|
||||
```
|
||||
3
www/caddy/Bastillefile
Normal file
3
www/caddy/Bastillefile
Normal file
@@ -0,0 +1,3 @@
|
||||
PKG caddy
|
||||
SYSRC caddy_enable=YES
|
||||
SERVICE caddy start
|
||||
29
www/caddy/LICENSE
Normal file
29
www/caddy/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
15
www/caddy/README.md
Normal file
15
www/caddy/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/caddy/commits/main)
|
||||
|
||||
## Caddy
|
||||
Bastille template to bootstrap Caddy
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/caddy
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/caddy
|
||||
```
|
||||
29
www/firefox/LICENSE
Normal file
29
www/firefox/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/firefox/PKG
Normal file
1
www/firefox/PKG
Normal file
@@ -0,0 +1 @@
|
||||
firefox
|
||||
18
www/firefox/README.md
Normal file
18
www/firefox/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Firefox
|
||||
Bastille template to bootstrap Firefox
|
||||
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/firefox/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/firefox
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/firefox
|
||||
```
|
||||
|
||||
Connect to this container using `ssh -X container 'firefox'` to launch the
|
||||
browser.
|
||||
11
www/gitea/Bastillefile
Normal file
11
www/gitea/Bastillefile
Normal file
@@ -0,0 +1,11 @@
|
||||
ARG SECRET_KEY
|
||||
ARG JWT_SECRET
|
||||
ARG INTERNAL_TOKEN
|
||||
|
||||
PKG gitea
|
||||
CP usr /
|
||||
RENDER /usr/local/etc/gitea/conf/app.ini
|
||||
CMD chown -R git:git /usr/local/etc/gitea
|
||||
SYSRC gitea_enable=YES
|
||||
SERVICE gitea start
|
||||
CMD echo "$?"
|
||||
29
www/gitea/LICENSE
Normal file
29
www/gitea/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2018-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
16
www/gitea/README.md
Normal file
16
www/gitea/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/gitea/commits/devel)
|
||||
|
||||
## gitea
|
||||
Bastille template to bootstrap gitea
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/gitea
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/gitea --arg SECRET_KEY=`openssl rand -base64 16` --arg JWT_SECRET=`openssl rand -base64 32` --arg INTERNAL_TOKEN=`openssl rand -base64 64`
|
||||
```
|
||||
92
www/gitea/usr/local/etc/gitea/conf/app.ini
Normal file
92
www/gitea/usr/local/etc/gitea/conf/app.ini
Normal file
@@ -0,0 +1,92 @@
|
||||
#
|
||||
# Sample Configuration for Gitea using SQLite
|
||||
#
|
||||
# For information on the available settings, consult the online
|
||||
# documentation, or see the accompanying file app.ini.defaults, which
|
||||
# contains the settings incorporated into the gitea binary.
|
||||
#
|
||||
# This sample configuration runs Gitea with a local database. Before
|
||||
# running this configuration, make sure to change the INTERNAL_TOKEN,
|
||||
# JWT_SECRET, and SECRET_KEY variables. SECRET_KEY is a password of your
|
||||
# choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding,
|
||||
# JWT_SECRET is a 32-byte random number in BASE64 encoding.
|
||||
#
|
||||
# You can generate the token using for example:
|
||||
# openssl rand -base64 64
|
||||
#
|
||||
# You can let Gitea add these to the config for you; you need to make
|
||||
# app.ini writeable by the git user.
|
||||
#
|
||||
# There are no pre-configured users; the first user to register becomes an
|
||||
# admin. In this sample configuration, the HTTP server only listens on
|
||||
# localhost.
|
||||
#
|
||||
# If you'd rather use the web-based installer, remove this conf/app.ini file
|
||||
# and make /usr/local/etc/gitea/conf writeable to the git user.
|
||||
APP_NAME = Gitea: Git with a cup of tea
|
||||
RUN_USER = git
|
||||
RUN_MODE = prod
|
||||
|
||||
[database]
|
||||
DB_TYPE = sqlite3
|
||||
HOST = ${JAIL_IP}:3306
|
||||
NAME = gitea
|
||||
PASSWD =
|
||||
PATH = /var/db/gitea/gitea.db
|
||||
SSL_MODE = disable
|
||||
USER = root
|
||||
|
||||
[indexer]
|
||||
ISSUE_INDEXER_PATH = /var/db/gitea/indexers/issues.bleve
|
||||
|
||||
[log]
|
||||
ROOT_PATH = /var/log/gitea
|
||||
MODE = file
|
||||
LEVEL = Info
|
||||
|
||||
[mailer]
|
||||
ENABLED = false
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = ${JWT_SECRET}
|
||||
|
||||
[picture]
|
||||
AVATAR_UPLOAD_PATH = /var/db/gitea/data/avatars
|
||||
DISABLE_GRAVATAR = false
|
||||
ENABLE_FEDERATED_AVATAR = false
|
||||
|
||||
[repository]
|
||||
ROOT = /var/db/gitea/gitea-repositories
|
||||
# Gitea's default is 'bash', so if you have bash installed, you can comment
|
||||
# this out.
|
||||
SCRIPT_TYPE = sh
|
||||
|
||||
[repository.upload]
|
||||
TEMP_PATH = /var/db/gitea/data/tmp/uploads
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
INTERNAL_TOKEN = ${INTERNAL_TOKEN}
|
||||
SECRET_KEY = ${SECRET_KEY}
|
||||
|
||||
[session]
|
||||
PROVIDER = file
|
||||
PROVIDER_CONFIG = /var/db/gitea/data/sessions
|
||||
|
||||
[server]
|
||||
DOMAIN = ${JAIL_NAME}
|
||||
HTTP_ADDR = ${JAIL_IP}
|
||||
HTTP_PORT = 3000
|
||||
ROOT_URL = http://${JAIL_IP}:3000/
|
||||
DISABLE_SSH = false
|
||||
SSH_DOMAIN = %(DOMAIN)s
|
||||
SSH_PORT = 22
|
||||
OFFLINE_MODE = false
|
||||
APP_DATA_PATH = /var/db/gitea/data
|
||||
|
||||
[service]
|
||||
REGISTER_EMAIL_CONFIRM = false
|
||||
ENABLE_NOTIFY_MAIL = false
|
||||
DISABLE_REGISTRATION = false
|
||||
ENABLE_CAPTCHA = true
|
||||
REQUIRE_SIGNIN_VIEW = false
|
||||
3
www/grafana/Bastillefile
Normal file
3
www/grafana/Bastillefile
Normal file
@@ -0,0 +1,3 @@
|
||||
PKG grafana8
|
||||
SYSRC grafana_enable=YES
|
||||
SERVICE grafana start
|
||||
29
www/grafana/LICENSE
Normal file
29
www/grafana/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
14
www/grafana/README.md
Normal file
14
www/grafana/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/grafana/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://github.com/bastillebsd-templates/grafana
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/grafana
|
||||
```
|
||||
22
www/guacamole/Bastillefile
Normal file
22
www/guacamole/Bastillefile
Normal file
@@ -0,0 +1,22 @@
|
||||
PKG guacamole-server guacamole-client mysql80-server mysql-connector-java
|
||||
SYSRC guacd_enable=YES
|
||||
SYSRC tomcat9_enable=YES
|
||||
SYSRC mysql_enable=YES
|
||||
CMD mkdir /usr/local/etc/guacamole-client/lib
|
||||
CMD mkdir /usr/local/etc/guacamole-client/extensions
|
||||
CMD cp /usr/local/share/java/classes/mysql-connector-java.jar /usr/local/etc/guacamole-client/lib
|
||||
CMD tar xvfz /usr/local/share/guacamole-client/guacamole-auth-jdbc.tar.gz -C /tmp/
|
||||
CMD cp /tmp/guacamole-auth-jdbc-*/mysql/*.jar /usr/local/etc/guacamole-client/extensions
|
||||
CMD cp /usr/local/etc/guacamole-server/guacd.conf.sample /usr/local/etc/guacamole-server/guacd.conf
|
||||
CMD cp /usr/local/etc/guacamole-client/logback.xml.sample /usr/local/etc/guacamole-client/logback.xml
|
||||
CMD cp /usr/local/etc/guacamole-client/guacamole.properties.sample /usr/local/etc/guacamole-client/guacamole.properties
|
||||
CMD echo "mysql-port: 3306" >> /usr/local/etc/guacamole-client/guacamole.properties
|
||||
CMD echo "mysql-database: guacamole_db" >> /usr/local/etc/guacamole-client/guacamole.properties
|
||||
CMD echo "mysql-username: guacamole_user" >> /usr/local/etc/guacamole-client/guacamole.properties
|
||||
CMD echo "mysql-password: Gu@c2Mo1e" >> /usr/local/etc/guacamole-client/guacamole.properties
|
||||
SERVICE mysql-server start
|
||||
CMD mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Gu@c2Mo1e';CREATE DATABASE guacamole_db;CREATE USER 'guacamole_user'@'' IDENTIFIED BY 'Gu@c2Mo1e';GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'';FLUSH PRIVILEGES;";
|
||||
CMD cat /tmp/guacamole-auth-jdbc-*/mysql/schema/*.sql | mysql -u root -pGu@c2Mo1e guacamole_db
|
||||
SERVICE mysql-server restart
|
||||
SERVICE guacd restart
|
||||
SERVICE tomcat9 restart
|
||||
15
www/guacamole/README.md
Normal file
15
www/guacamole/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Guacamole
|
||||
Bastille template to bootstrap Guacamole
|
||||
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/guacamole/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/guacamole
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/guacamole
|
||||
```
|
||||
1
www/haproxy/CMD
Normal file
1
www/haproxy/CMD
Normal file
@@ -0,0 +1 @@
|
||||
haproxy -t
|
||||
29
www/haproxy/LICENSE
Normal file
29
www/haproxy/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/haproxy/PKG
Normal file
1
www/haproxy/PKG
Normal file
@@ -0,0 +1 @@
|
||||
haproxy
|
||||
15
www/haproxy/README.md
Normal file
15
www/haproxy/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/haproxy/commits/master)
|
||||
|
||||
## haproxy
|
||||
Bastille template to bootstrap HAProxy
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/haproxy
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/haproxy
|
||||
```
|
||||
1
www/haproxy/SERVICE
Normal file
1
www/haproxy/SERVICE
Normal file
@@ -0,0 +1 @@
|
||||
haproxy start
|
||||
1
www/haproxy/SYSRC
Normal file
1
www/haproxy/SYSRC
Normal file
@@ -0,0 +1 @@
|
||||
haproxy_enable=YES
|
||||
4
www/nextcloud/Bastillefile
Normal file
4
www/nextcloud/Bastillefile
Normal file
@@ -0,0 +1,4 @@
|
||||
INCLUDE bastillebsd-templates/mariadb-server
|
||||
INCLUDE bastillebsd-templates/apache
|
||||
|
||||
PKG nextcloud-php74
|
||||
29
www/nextcloud/LICENSE
Normal file
29
www/nextcloud/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
17
www/nextcloud/README.md
Normal file
17
www/nextcloud/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/nextcloud/commits/main)
|
||||
|
||||
## nextcloud
|
||||
Bastille template to bootstrap Nextcloud
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/nextcloud
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/nextcloud
|
||||
```
|
||||
29
www/nginx-poudriere-pkg-conf/LICENSE
Normal file
29
www/nginx-poudriere-pkg-conf/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2018-2020, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/nginx-poudriere-pkg-conf/OVERLAY
Normal file
1
www/nginx-poudriere-pkg-conf/OVERLAY
Normal file
@@ -0,0 +1 @@
|
||||
usr
|
||||
20
www/nginx-poudriere-pkg-conf/README.md
Normal file
20
www/nginx-poudriere-pkg-conf/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/nginx-poudriere-pkg-conf/commits/master)
|
||||
|
||||
## nginx-poudriere-pkg-conf
|
||||
Bastille Template: nginx-poudriere-pkg-conf
|
||||
|
||||
Fetch and apply this template with:
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/BastilleBSD-Templates/nginx-poudriere-pkg-conf
|
||||
bastille template TARGET BastilleBSD-Templates/nginx-poudriere-pkg-conf
|
||||
```
|
||||
|
||||
## Description
|
||||
This template adds a `poudriere-local.conf` to the container's configured
|
||||
repository. This is meant to be used with
|
||||
https://gitlab.com/bastillebsd-templates/nginx-poudriere
|
||||
|
||||
Note: update the `10.17.89.80` example IP address with the address of your pkg
|
||||
container.
|
||||
@@ -0,0 +1,4 @@
|
||||
poudriere-local: {
|
||||
url: "http://10.17.89.80/pkg/${ABI}",
|
||||
enabled: yes
|
||||
}
|
||||
7
www/nginx-poudriere/Bastillefile
Normal file
7
www/nginx-poudriere/Bastillefile
Normal file
@@ -0,0 +1,7 @@
|
||||
CMD mkdir -p /usr/local/share/poudriere
|
||||
CMD mkdir -p /usr/local/poudriere/data
|
||||
MOUNT /usr/local/share/poudriere usr/local/share/poudriere nullfs ro 0 0
|
||||
MOUNT /usr/local/poudriere/data usr/local/poudriere/data nullfs ro 0 0
|
||||
INCLUDE https://gitlab.com/bastillebsd-templates/nginx
|
||||
CP usr /
|
||||
SERVICE nginx restart
|
||||
29
www/nginx-poudriere/LICENSE
Normal file
29
www/nginx-poudriere/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2018-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
27
www/nginx-poudriere/README.md
Normal file
27
www/nginx-poudriere/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/nginx-poudriere/commits/master)
|
||||
|
||||
## nginx-poudriere
|
||||
Bastille template to bootstrap nginx for poudriere
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/nginx-poudriere
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/nginx-poudriere
|
||||
```
|
||||
|
||||
## Notes
|
||||
The `nginx.conf` OVERLAY assumes a poudriere naming scheme of
|
||||
"majorversionarch" (ie "12amd64", "13aarch64", etc) and a "default" ports
|
||||
tree.
|
||||
|
||||
Example: FreeBSD:12:amd64 will be served from 12amd64-default poudriere
|
||||
repository, FreeBSD:13:aarch64 from 13aarch64-default, etc.
|
||||
|
||||
See: https://gitlab.com/bastillebsd-templates/nginx-poudriere-pkg-conf for client
|
||||
repo config.
|
||||
175
www/nginx-poudriere/usr/local/etc/nginx/nginx.conf
Normal file
175
www/nginx-poudriere/usr/local/etc/nginx/nginx.conf
Normal file
@@ -0,0 +1,175 @@
|
||||
user nobody;
|
||||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log /var/log/nginx/access.log;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
# Allow gzipping js, css, log, svg and json files.
|
||||
gzip on;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_comp_level 6;
|
||||
gzip_http_version 1.0;
|
||||
gzip_min_length 1100;
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/gif image/jpeg image/png application/json image/svg+xml;
|
||||
|
||||
types {
|
||||
text/plain log;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
root /usr/local/share/poudriere/html;
|
||||
|
||||
## Allow caching static resources
|
||||
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|woff|css|js|html)$ {
|
||||
add_header Cache-Control "public";
|
||||
expires 2d;
|
||||
}
|
||||
|
||||
## pkg index
|
||||
location /pkg {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages;
|
||||
}
|
||||
|
||||
## 10.x-RELEASE (no longer updated)
|
||||
location /pkg/FreeBSD:10:amd64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/10amd64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:10:i386 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/10i386-default;
|
||||
}
|
||||
|
||||
## 11.x-RELEASE (tier 1)
|
||||
location /pkg/FreeBSD:11:amd64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11amd64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:11:i386 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11i386-default;
|
||||
}
|
||||
location /pkg/FreeBSD:11:aarch64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11aarch64-default;
|
||||
}
|
||||
## 11.x-RELEASE (tier 2)
|
||||
location /pkg/FreeBSD:11:armv6 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11armv6-default;
|
||||
}
|
||||
location /pkg/FreeBSD:11:mips {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11mips-default;
|
||||
}
|
||||
location /pkg/FreeBSD:11:mips64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/11mips64-default;
|
||||
}
|
||||
|
||||
## 12.x-RELEASE (tier 1)
|
||||
location /pkg/FreeBSD:12:amd64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12amd64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:i386 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12i386-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:aarch64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12aarch64-default;
|
||||
}
|
||||
## 12.x-RELEASE (tier 2)
|
||||
location /pkg/FreeBSD:12:armv6 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12armv6-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:armv7 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12armv7-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:mips {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12mips-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:mips64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12mips64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:12:powerpc {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/12powerpc-default;
|
||||
}
|
||||
|
||||
## 13.x-RELEASE (tier 1)
|
||||
location /pkg/FreeBSD:13:amd64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13amd64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:i386 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13i386-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:aarch64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13aarch64-default;
|
||||
}
|
||||
## 13.x-RELEASE (tier 2)
|
||||
location /pkg/FreeBSD:13:armv6 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13armv6-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:armv7 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13armv7-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:mips {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13mips-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:mips64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13mips64-default;
|
||||
}
|
||||
location /pkg/FreeBSD:13:powerpc64 {
|
||||
autoindex on;
|
||||
alias /usr/local/poudriere/data/packages/13powerpc64-default;
|
||||
}
|
||||
|
||||
## log data
|
||||
location /data {
|
||||
alias /usr/local/poudriere/data/logs/bulk;
|
||||
|
||||
# Allow caching dynamic files but ensure they get rechecked
|
||||
location ~* ^.+\.(log|txz|tbz|bz2|gz)$ {
|
||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||
}
|
||||
|
||||
# Don't log json requests as they come in frequently and ensure
|
||||
# caching works as expected
|
||||
location ~* ^.+\.(json)$ {
|
||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
# Allow indexing only in log dirs
|
||||
location ~ /data/?.*/(logs|latest-per-pkg)/ {
|
||||
autoindex on;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
5
www/nginx/Bastillefile
Normal file
5
www/nginx/Bastillefile
Normal file
@@ -0,0 +1,5 @@
|
||||
PKG nginx
|
||||
CP usr /
|
||||
SYSRC nginx_enable=YES
|
||||
CMD nginx -t
|
||||
SERVICE nginx restart
|
||||
29
www/nginx/LICENSE
Normal file
29
www/nginx/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
18
www/nginx/README.md
Normal file
18
www/nginx/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/nginx/commits/master)
|
||||
|
||||
## nginx
|
||||
Bastille template to bootstrap nginx
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/nginx
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/nginx
|
||||
|
||||
```
|
||||
36
www/nginx/usr/local/etc/nginx/nginx.conf
Normal file
36
www/nginx/usr/local/etc/nginx/nginx.conf
Normal file
@@ -0,0 +1,36 @@
|
||||
user nobody;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/local/www/nginx;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/local/www/nginx-dist;
|
||||
}
|
||||
}
|
||||
}
|
||||
29
www/node/LICENSE
Normal file
29
www/node/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
2
www/node/PKG
Normal file
2
www/node/PKG
Normal file
@@ -0,0 +1,2 @@
|
||||
node
|
||||
npm
|
||||
15
www/node/README.md
Normal file
15
www/node/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/node/commits/master)
|
||||
|
||||
## node
|
||||
Bastille Template to bootstrap node (and npm)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/node
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/node
|
||||
```
|
||||
29
www/npm/LICENSE
Normal file
29
www/npm/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/npm/PKG
Normal file
1
www/npm/PKG
Normal file
@@ -0,0 +1 @@
|
||||
npm
|
||||
15
www/npm/README.md
Normal file
15
www/npm/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# NPM
|
||||
Bastille template to bootstrap NPM
|
||||
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/npm/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/npm
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/npm
|
||||
```
|
||||
29
www/traefik/LICENSE
Normal file
29
www/traefik/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/traefik/PKG
Normal file
1
www/traefik/PKG
Normal file
@@ -0,0 +1 @@
|
||||
traefik
|
||||
18
www/traefik/README.md
Normal file
18
www/traefik/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/traefik/commits/master)
|
||||
|
||||
## traefik
|
||||
Bastille template to bootstrap traefik
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/traefik
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/traefik
|
||||
|
||||
```
|
||||
1
www/traefik/SERVICE
Normal file
1
www/traefik/SERVICE
Normal file
@@ -0,0 +1 @@
|
||||
traefik start
|
||||
1
www/traefik/SYSRC
Normal file
1
www/traefik/SYSRC
Normal file
@@ -0,0 +1 @@
|
||||
traefik_enable=YES
|
||||
29
www/varnish/LICENSE
Normal file
29
www/varnish/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/varnish/PKG
Normal file
1
www/varnish/PKG
Normal file
@@ -0,0 +1 @@
|
||||
varnish6
|
||||
15
www/varnish/README.md
Normal file
15
www/varnish/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Varnish
|
||||
Bastille template to bootstrap Varnish
|
||||
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/varnish/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/varnish
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/varnish
|
||||
```
|
||||
1
www/varnish/SERVICE
Normal file
1
www/varnish/SERVICE
Normal file
@@ -0,0 +1 @@
|
||||
varnishd start
|
||||
1
www/varnish/SYSRC
Normal file
1
www/varnish/SYSRC
Normal file
@@ -0,0 +1 @@
|
||||
varnishd_enable=YES
|
||||
14
www/wordpress/Bastillefile
Normal file
14
www/wordpress/Bastillefile
Normal file
@@ -0,0 +1,14 @@
|
||||
PKG mariadb105-server nginx php74-curl php74-dom php74-fileinfo php74-exif php74-json php74-mbstring php74-extensions php74-mysqli php74-openssl php74-pecl-libsodium php74-xml php74-zip php74-filter php74-gd php74-iconv php74-simplexml php74-xmlreader php74-zlib php74-pecl-imagick php74-pecl-mcrypt php74-bcmath wordpress
|
||||
|
||||
CP usr /
|
||||
CP root /
|
||||
|
||||
SYSRC mysql_enable=YES
|
||||
SYSRC php_fpm_enable=YES
|
||||
SYSRC nginx_enable=YES
|
||||
|
||||
SERVICE mysql-server start
|
||||
SERVICE php-fpm start
|
||||
SERVICE nginx start
|
||||
|
||||
CMD /root/bootstrap-wp.sh
|
||||
29
www/wordpress/LICENSE
Normal file
29
www/wordpress/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
15
www/wordpress/README.md
Normal file
15
www/wordpress/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## Deployment Test Status
|
||||
[](https://gitlab.com/bastillebsd-templates/wordpress/commits/master)
|
||||
|
||||
# wordpress
|
||||
Bastille template to bootstrap Wordpress
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/wordpress
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/wordpress
|
||||
```
|
||||
24
www/wordpress/root/bootstrap-wp.sh
Executable file
24
www/wordpress/root/bootstrap-wp.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
# (christer.edwards@gmail.com)
|
||||
# bootstrap wordpress database and token
|
||||
|
||||
## set random token string
|
||||
BOOTSTRAP_TOKEN=$(openssl rand -hex 18)
|
||||
|
||||
## copy config sample into place
|
||||
cp /usr/local/www/wordpress/wp-config-sample.php /usr/local/www/wordpress/wp-config.php
|
||||
|
||||
## find/replace magic
|
||||
sed -i '' -e s#username_here#wpuser# \
|
||||
-e s#password_here#$BOOTSTRAP_TOKEN# \
|
||||
-e s#database_name_here#wordpress# \
|
||||
/usr/local/www/wordpress/wp-config.php
|
||||
|
||||
sed -i '' 's/localhost/127.0.0.1/' /usr/local/www/wordpress/wp-config.php
|
||||
|
||||
## import database
|
||||
echo "CREATE DATABASE wordpress; CREATE USER wpuser@localhost IDENTIFIED BY
|
||||
'$BOOTSTRAP_TOKEN'; GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost;" | mysql
|
||||
|
||||
## cleanup
|
||||
rm /root/bootstrap-wp.sh
|
||||
41
www/wordpress/usr/local/etc/nginx/nginx.conf
Normal file
41
www/wordpress/usr/local/etc/nginx/nginx.conf
Normal file
@@ -0,0 +1,41 @@
|
||||
user nobody;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
root /usr/local/www/wordpress;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?q=$uri&$args;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/local/www/nginx-dist;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
www/wordpress/usr/local/etc/php-fpm.d/www.conf
Normal file
12
www/wordpress/usr/local/etc/php-fpm.d/www.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
[www]
|
||||
user = nobody
|
||||
group = nobody
|
||||
listen = /var/run/php-fpm.sock
|
||||
listen.owner = nobody
|
||||
listen.group = nobody
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
29
www/yarn/LICENSE
Normal file
29
www/yarn/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2019, Christer Edwards
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1
www/yarn/PKG
Normal file
1
www/yarn/PKG
Normal file
@@ -0,0 +1 @@
|
||||
yarn
|
||||
15
www/yarn/README.md
Normal file
15
www/yarn/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Yarn
|
||||
Bastille template to bootstrap Yarn
|
||||
|
||||
## Status
|
||||
[](https://gitlab.com/bastillebsd-templates/yarn/commits/master)
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://gitlab.com/bastillebsd-templates/yarn
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/yarn
|
||||
```
|
||||
Reference in New Issue
Block a user