Skip to content

Commit 9352a59

Browse files
committed
initial release
1 parent f3754ec commit 9352a59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3525
-1
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.git
2+
.gitignore
3+
.github
4+
.gitattributes
5+
READMETEMPLATE.md

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: linuxserver
2+
open_collective: linuxserver
3+
custom: ["https://supporters.eff.org/donate/support-work-on-certbot",]

.github/ISSUE_TEMPLATE.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[linuxserverurl]: https://linuxserver.io
2+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
3+
4+
If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support.
5+
6+
<!--- Provide a general summary of the issue in the Title above -->
7+
8+
------------------------------
9+
10+
## Expected Behavior
11+
<!--- Tell us what should happen -->
12+
13+
## Current Behavior
14+
<!--- Tell us what happens instead of the expected behavior -->
15+
16+
## Steps to Reproduce
17+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
18+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
19+
1.
20+
2.
21+
3.
22+
4.
23+
24+
## Environment
25+
**OS:**
26+
**CPU architecture:** x86_64/arm32/arm64
27+
**How docker service was installed:**
28+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
29+
30+
## Command used to create docker container (run/create/compose/screenshot)
31+
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
32+
33+
## Docker logs
34+
<!--- Provide a full docker log, output of "docker logs swag" -->

.github/PULL_REQUEST_TEMPLATE.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
[linuxserverurl]: https://linuxserver.io
4+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
5+
6+
7+
<!--- Before submitting a pull request please check the following -->
8+
9+
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
10+
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
11+
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
12+
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
13+
<!--- We maintain a changelog of major revisions to the container at the end of readme-vars.yml in the root of this repository, please add your changes there if appropriate -->
14+
15+
16+
<!--- Coding guidelines: -->
17+
<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->
18+
<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->
19+
<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->
20+
<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->
21+
22+
------------------------------
23+
24+
We welcome all PR’s though this doesn’t guarantee it will be accepted.
25+
26+
## Description:
27+
<!--- Describe your changes in detail -->
28+
29+
## Benefits of this PR and context:
30+
<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->
31+
32+
## How Has This Been Tested?
33+
<!--- Please describe in detail how you tested your changes. -->
34+
<!--- Include details of your testing environment, and the tests you ran to -->
35+
<!--- see how your change affects other areas of the code, etc. -->
36+
37+
38+
## Source / References:
39+
<!--- Please include any forum posts/github links relevant to the PR -->

.github/workflows/greetings.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [issue template](https://github.com/linuxserver/docker-swag/.github/ISSUE_TEMPLATE.md)!'
12+
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-swag/.github/PULL_REQUEST_TEMPLATE.md)!'
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v1
14+
with:
15+
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
16+
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
17+
stale-issue-label: 'no-issue-activity'
18+
stale-pr-label: 'no-pr-activity'
19+
days-before-stale: 30
20+
days-before-close: 365
21+
exempt-issue-labels: 'awaiting-approval,work-in-progress'
22+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
FROM lsiobase/nginx:3.12
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG CERTBOT_VERSION
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="aptalca"
9+
10+
# environment settings
11+
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
12+
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
13+
14+
RUN \
15+
echo "**** install build packages ****" && \
16+
apk add --no-cache --virtual=build-dependencies \
17+
g++ \
18+
gcc \
19+
libffi-dev \
20+
openssl-dev \
21+
python3-dev && \
22+
echo "**** install runtime packages ****" && \
23+
apk add --no-cache --upgrade \
24+
curl \
25+
fail2ban \
26+
gnupg \
27+
memcached \
28+
nginx \
29+
nginx-mod-http-echo \
30+
nginx-mod-http-fancyindex \
31+
nginx-mod-http-geoip2 \
32+
nginx-mod-http-headers-more \
33+
nginx-mod-http-image-filter \
34+
nginx-mod-http-lua \
35+
nginx-mod-http-lua-upstream \
36+
nginx-mod-http-nchan \
37+
nginx-mod-http-perl \
38+
nginx-mod-http-redis2 \
39+
nginx-mod-http-set-misc \
40+
nginx-mod-http-upload-progress \
41+
nginx-mod-http-xslt-filter \
42+
nginx-mod-mail \
43+
nginx-mod-rtmp \
44+
nginx-mod-stream \
45+
nginx-mod-stream-geoip2 \
46+
nginx-vim \
47+
php7-bcmath \
48+
php7-bz2 \
49+
php7-ctype \
50+
php7-curl \
51+
php7-dom \
52+
php7-exif \
53+
php7-ftp \
54+
php7-gd \
55+
php7-iconv \
56+
php7-imap \
57+
php7-intl \
58+
php7-ldap \
59+
php7-mcrypt \
60+
php7-memcached \
61+
php7-mysqli \
62+
php7-mysqlnd \
63+
php7-opcache \
64+
php7-pdo_mysql \
65+
php7-pdo_odbc \
66+
php7-pdo_pgsql \
67+
php7-pdo_sqlite \
68+
php7-pear \
69+
php7-pecl-apcu \
70+
php7-pecl-redis \
71+
php7-pgsql \
72+
php7-phar \
73+
php7-posix \
74+
php7-soap \
75+
php7-sockets \
76+
php7-sodium \
77+
php7-sqlite3 \
78+
php7-tokenizer \
79+
php7-xml \
80+
php7-xmlreader \
81+
php7-xmlrpc \
82+
php7-zip \
83+
py3-cryptography \
84+
py3-future \
85+
py3-pip \
86+
whois && \
87+
echo "**** install certbot plugins ****" && \
88+
if [ -z ${CERTBOT_VERSION+x} ]; then \
89+
CERTBOT="certbot"; \
90+
else \
91+
CERTBOT="certbot==${CERTBOT_VERSION}"; \
92+
fi && \
93+
pip3 install -U \
94+
pip && \
95+
pip3 install -U \
96+
${CERTBOT} \
97+
certbot-dns-aliyun \
98+
certbot-dns-cloudflare \
99+
certbot-dns-cloudxns \
100+
certbot-dns-cpanel \
101+
certbot-dns-digitalocean \
102+
certbot-dns-dnsimple \
103+
certbot-dns-dnsmadeeasy \
104+
certbot-dns-domeneshop \
105+
certbot-dns-google \
106+
certbot-dns-inwx \
107+
certbot-dns-linode \
108+
certbot-dns-luadns \
109+
certbot-dns-nsone \
110+
certbot-dns-ovh \
111+
certbot-dns-rfc2136 \
112+
certbot-dns-route53 \
113+
certbot-dns-transip \
114+
certbot-plugin-gandi \
115+
cryptography \
116+
requests && \
117+
echo "**** remove unnecessary fail2ban filters ****" && \
118+
rm \
119+
/etc/fail2ban/jail.d/alpine-ssh.conf && \
120+
echo "**** copy fail2ban default action and filter to /default ****" && \
121+
mkdir -p /defaults/fail2ban && \
122+
mv /etc/fail2ban/action.d /defaults/fail2ban/ && \
123+
mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \
124+
echo "**** copy proxy confs to /default ****" && \
125+
mkdir -p /defaults/proxy-confs && \
126+
curl -o \
127+
/tmp/proxy.tar.gz -L \
128+
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
129+
tar xf \
130+
/tmp/proxy.tar.gz -C \
131+
/defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \
132+
echo "**** configure nginx ****" && \
133+
rm -f /etc/nginx/conf.d/default.conf && \
134+
curl -o \
135+
/defaults/dhparams.pem -L \
136+
"https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \
137+
echo "**** cleanup ****" && \
138+
apk del --purge \
139+
build-dependencies && \
140+
for cleanfiles in *.pyc *.pyo; \
141+
do \
142+
find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \
143+
; done && \
144+
rm -rf \
145+
/tmp/* \
146+
/root/.cache
147+
148+
# add local files
149+
COPY root/ /

0 commit comments

Comments
 (0)