Adding blog to docker and in progress magazine post.

This commit is contained in:
Samuel Clay 2022-03-04 11:03:57 -05:00
parent 2491e3bf86
commit af4b6b2b02
2 changed files with 16 additions and 1 deletions

View file

@ -59,6 +59,7 @@ frontend public
use_backend nginx if { path_beg /favicon }
use_backend nginx if { path_beg /crossdomain/ }
use_backend nginx if { path_beg /robots }
use_backend nginx if { hdr_sub(host) -i blog.localhost }
#use_backend self if { path_beg /munin/ }
# use_backend gunicorn_counts if is_unread_count

View file

@ -62,7 +62,7 @@ server {
keepalive_timeout 1;
root /srv/newsblur;
}
location /static/ {
gzip_static on;
expires max;
@ -114,3 +114,17 @@ server {
}
}
server {
listen 81;
server_name blog.localhost;
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
root /srv/newsblur/blog/_site;
}