-
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 branch 'develop' into feature/projects-autocomplite
- Loading branch information
Showing
12 changed files
with
205 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM certbot/certbot | ||
|
||
COPY fullchain.pem /letsencrypt/live/devcodepet.tw1.ru/fullchain.pem | ||
ARG DOMAIN_NAME | ||
|
||
COPY privkey.pem /letsencrypt/live/devcodepet.tw1.ru/privkey.pem | ||
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
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_NAME} /etc/nginx/templates/default.conf.template |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 89.23.117.80; | ||
server_tokens off; | ||
|
||
root /staticfiles; | ||
|
||
location / { | ||
return 301 https://devcodepet.tw1.ru$request_uri; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name devcodepet.tw1.ru; | ||
server_tokens off; | ||
|
||
root /staticfiles; | ||
|
||
location /.well-known/acme-challenge/ { | ||
root /certbot; | ||
} | ||
|
||
location /admin/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name localhost; | ||
server_tokens off; | ||
|
||
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; | ||
} | ||
} |
Oops, something went wrong.