-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Pet-projects-CodePET/feature/ssl
Feature/ssl
- Loading branch information
Showing
50 changed files
with
3,621 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM certbot/certbot | ||
|
||
ARG DOMAIN_NAME | ||
|
||
COPY fullchain.pem /letsencrypt/live/${DOMAIN_NAME}/fullchain.pem | ||
|
||
COPY privkey.pem /letsencrypt/live/${DOMAIN_NAME}/privkey.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEJjCCAw6gAwIBAgISA6TLYZ/Hyg4wib0SFHfrvVZBMA0GCSqGSIb3DQEBCwUA | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgILVj3nRN/yfoyLtn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
FROM nginx:1.25.4-alpine-slim | ||
COPY nginx.conf /etc/nginx/templates/default.conf.template | ||
|
||
ARG NGINX_NAME | ||
|
||
COPY nginx_qa.conf /etc/nginx/templates/default.conf.template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 89.23.117.80 devcodepet.tw1.ru; | ||
server_tokens off; | ||
|
||
root /staticfiles; | ||
|
||
location /.well-known/acme-challenge/ { | ||
root /certbot; | ||
} | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 default_server ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name 89.23.117.80 devcodepet.tw1.ru; | ||
|
||
ssl_certificate /letsencrypt/live/devcodepet.tw1.ru/fullchain.pem; | ||
ssl_certificate_key /letsencrypt/live/devcodepet.tw1.ru/privkey.pem; | ||
|
||
root /staticfiles; | ||
|
||
location /api/v1/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/api/v1/; | ||
} | ||
location /admin/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
|
||
location /.well-known/acme-challenge/ { | ||
root /certbot; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri.html $uri/ =404; | ||
} | ||
|
||
error_page 404 /404.html; | ||
location = /404.html { | ||
internal; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 89.23.117.168 testcodepet.tw1.ru; | ||
server_tokens off; | ||
|
||
root /staticfiles; | ||
|
||
location /.well-known/acme-challenge/ { | ||
root /certbot; | ||
} | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 default_server ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name 89.23.117.168 testcodepet.tw1.ru; | ||
|
||
ssl_certificate /etc/nginx/ssl/live/testcodepet.tw1.ru/fullchain.pem; | ||
ssl_certificate_key /etc/nginx/ssl/live/testcodepet.tw1.ru/privkey.pem; | ||
|
||
root /staticfiles; | ||
|
||
location /api/v1/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/api/v1/; | ||
} | ||
location /admin/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri.html $uri/ =404; | ||
} | ||
|
||
error_page 404 /404.html; | ||
location = /404.html { | ||
internal; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.