redesigned
This commit is contained in:
parent
6750814646
commit
e8cff9b1d4
6 changed files with 12 additions and 1 deletions
13
dist/Dockerfile
vendored
Normal file
13
dist/Dockerfile
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM python:alpine
|
||||
WORKDIR /usr/local/app
|
||||
|
||||
COPY src ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
RUN adduser -D app
|
||||
RUN chown -R app:app ../app
|
||||
USER app
|
||||
|
||||
CMD ["gunicorn","-w 2", "-b 0.0.0.0:5000", "wsgi:app"]
|
39
dist/nginx.cnf
vendored
Normal file
39
dist/nginx.cnf
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name jetsearch.com;
|
||||
|
||||
return 301 https://www.jetsearch.com$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name www.jetsearch.com;
|
||||
|
||||
return 301 https://www.jetsearch.com$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name jetsearch.com;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/jet-search.crt;
|
||||
ssl_certificate_key /etc/ssl/private/jet-search.key;
|
||||
|
||||
return 301 https://www.jetsearch.com$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name www.jetsearch.com;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/jet-search.crt;
|
||||
ssl_certificate_key /etc/ssl/private/jet-search.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
20
dist/openssl.cnf
vendored
Normal file
20
dist/openssl.cnf
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
[ req ]
|
||||
default_bits = 2048
|
||||
distinguished_name = req_distinguished_name
|
||||
req_extensions = req_ext
|
||||
prompt = no
|
||||
|
||||
[ req_distinguished_name ]
|
||||
C = CH
|
||||
ST = Zurich
|
||||
L = Zurich
|
||||
O = InterstellarNet
|
||||
OU = NONE
|
||||
CN = jetsearch.com
|
||||
|
||||
[ req_ext ]
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[ alt_names ]
|
||||
DNS.1 = jetsearch.com
|
||||
DNS.2 = www.jetsearch.com
|
12
dist/zonefile.cnf
vendored
Normal file
12
dist/zonefile.cnf
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
$TTL 604800
|
||||
@ IN SOA ns.jetsearch.com. admin.jetsearch.com. (
|
||||
2
|
||||
604800
|
||||
86400
|
||||
2419200
|
||||
604800 )
|
||||
;
|
||||
@ IN NS ns.jetsearch.com.
|
||||
ns IN A 192.168.1.1
|
||||
@ IN A 192.168.1.1
|
||||
www IN A 192.168.1.1
|
Loading…
Add table
Add a link
Reference in a new issue