Re-wrote compose and conf removing personal info
This commit is contained in:
36
nginx/conf.d/ref-test-app.conf
Normal file
36
nginx/conf.d/ref-test-app.conf
Normal file
@ -0,0 +1,36 @@
|
||||
upstream reftest {
|
||||
server ref_test_app:5000;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name domain_name;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
# Redirect to ssl
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name domain_name;
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
#SSL configuration
|
||||
include /etc/nginx/ssl.conf;
|
||||
include /etc/nginx/certbot-challenge.conf;
|
||||
|
||||
location ^~ /static/ {
|
||||
include /etc/nginx/mime.types;
|
||||
alias /usr/share/nginx/html/quiz/static/;
|
||||
}
|
||||
|
||||
location ^~ /admin/static/ {
|
||||
include /etc/nginx/mime.types;
|
||||
alias /usr/share/nginx/html/admin/static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
include /etc/nginx/conf.d/common-location.conf;
|
||||
proxy_pass http://reftest;
|
||||
}
|
||||
}
|
2
nginx/ssl.conf
Normal file
2
nginx/ssl.conf
Normal file
@ -0,0 +1,2 @@
|
||||
ssl_certificate /etc/letsencrypt/live/domain_name/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/domain_name/privkey.pem; # managed by Certbot
|
Reference in New Issue
Block a user