Skip to content

Commit

Permalink
blog will not show unpublished articles anymore (whoops\!)
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Feb 6, 2017
1 parent 7984eec commit 0974294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions blog.moon
Expand Up @@ -75,6 +75,8 @@ class extends lapis.Application

[post: "/post/:slug"]: =>
if post = Posts\find slug: @params.slug
unless post.status == Posts.statuses.published
return redirect_to: @url_for("blog_index")
@title = post.title
@html ->
script src: @build_url "static/js/marked.min.js"
Expand Down
8 changes: 4 additions & 4 deletions nginx.conf
Expand Up @@ -19,11 +19,11 @@ http {
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off; # Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
ssl_session_tickets off; # Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
ssl_dhparam dhparams.pem;

# These should be defined per server, NOT in the proxy:
Expand Down

0 comments on commit 0974294

Please sign in to comment.