Updating nginx config to now include resume.shockrah.xyz in the fun :)
Also nginx.conf now has some gzip configuration parameters set, courtesy of: https://www.techrepublic.com/article/how-to-configure-gzip-compression-with-nginx/
This commit is contained in:
parent
11ffc23871
commit
5903ba2a5e
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ playbooks/env/
|
||||
playbooks/beta/files/*.pub
|
||||
|
||||
docker/beta/shockrah.xyz/
|
||||
docker/beta/resume.shockrah.xyz/
|
||||
|
@ -1,5 +1,9 @@
|
||||
FROM nginx
|
||||
ARG SRC
|
||||
RUN mkdir -p /var/www/blog.shockrah.xyz
|
||||
COPY shockrah.xyz /var/www/blog.shockrah.xyz
|
||||
|
||||
# TODO: let's not make this permanent
|
||||
COPY shockrah.xyz /var/www/shockrah.xyz
|
||||
COPY resume.shockrah.xyz /var/www/resume.shockrah.xyz
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
@ -26,21 +26,23 @@ http {
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
#gzip on;
|
||||
gzip on;
|
||||
gzip_min_length 2048;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_types text/plain text/xml text/javascript application/x-jacascript application/xml;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
# Testing blog routing
|
||||
server {
|
||||
server_name "blog.shockrah.xyz";
|
||||
server_name "shockrah.xyz";
|
||||
location / {
|
||||
root /var/www/blog.shockrah.xyz;
|
||||
root /var/www/shockrah.xyz;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
server_name "wiki.shockrah.xyz";
|
||||
server_name "resume.shockrah.xyz";
|
||||
location / {
|
||||
return 200 'Reading wiki.shockrah.xyz';
|
||||
root /var/www/resume.shockrah.xyz;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user