Mobile fixes, caching, cleanup
This commit is contained in:
parent
b4a0478218
commit
254cd68b35
4 changed files with 10 additions and 61 deletions
|
@ -20,7 +20,7 @@ server {
|
|||
|
||||
location /static/ {
|
||||
access_log off;
|
||||
expires 3600;
|
||||
expires 36000;
|
||||
alias {{ release_dir }}/static/;
|
||||
add_header Cache-Control "public";
|
||||
add_header Access-Control-Allow-Origin https://{{ domain }};
|
||||
|
@ -36,9 +36,9 @@ server {
|
|||
# Only serve /media/images by default, not e.g. original_images/.
|
||||
location /media/images {
|
||||
alias {{ release_dir }}/media/images;
|
||||
access_log off;
|
||||
expires max;
|
||||
add_header Cache-Control "public";
|
||||
access_log off;
|
||||
expires max;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
# Public Health CMS stage
|
||||
upstream wagtail-stage {
|
||||
server localhost:5000;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name ph-alpha.nebula1.public-health.ch;
|
||||
client_max_body_size 64M;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/x-javascript image/svg+xml;
|
||||
gzip_comp_level 1;
|
||||
gzip_disable msie6;
|
||||
gzip_http_version 1.0;
|
||||
gzip_proxied any;
|
||||
gzip_vary on;
|
||||
|
||||
location /static/ {
|
||||
access_log off;
|
||||
expires 3600;
|
||||
alias /opt/public-health-ch/static/;
|
||||
}
|
||||
|
||||
# Set a longer expiry for CACHE/, because the filenames are unique.
|
||||
location /static/CACHE/ {
|
||||
access_log off;
|
||||
expires 864000;
|
||||
alias /opt/public-health-ch/static/CACHE/;
|
||||
}
|
||||
|
||||
# Only server /media/images by default, not e.g. original_images/.
|
||||
location /media/images {
|
||||
expires 864000;
|
||||
alias /opt/public-health-ch/media/images;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://wagtail-stage;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80; listen 443 ssl;
|
||||
server_name conference.public-health.ch;
|
||||
location /fr {
|
||||
return 301 $scheme://sph17.organizers-congress.org/frontend/index.php?sub=89;
|
||||
}
|
||||
location / {
|
||||
return 301 $scheme://sph17.organizers-congress.org;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +28,11 @@
|
|||
border: 1px solid $gray-light;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
// Full width comment on mobile screens
|
||||
@include max-screen($screen-xs-max) {
|
||||
textarea { width: 100%; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<span class="contact-nav">
|
||||
<a class="link" href="#contact-info" title="Contact">
|
||||
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
|
||||
<span class="sr-only">Contact</span>
|
||||
</a>
|
||||
{% contact_links %}
|
||||
</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue