36 lines
771 B
Plaintext
36 lines
771 B
Plaintext
upstream reftest {
|
|
server ref_test_app:5000;
|
|
}
|
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
# Redirect to ssl
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2 default_server;
|
|
listen [::]:443 ssl http2 default_server;
|
|
|
|
#SSL configuration
|
|
include /etc/nginx/ssl.conf;
|
|
include /etc/nginx/certbot-challenge.conf;
|
|
|
|
location ^~ /quiz/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;
|
|
}
|
|
} |