Skip to content

Instantly share code, notes, and snippets.

View vtiffenberg's full-sized avatar

Valeria Tiffenberg vtiffenberg

  • Buenos Aires, Argentina
View GitHub Profile
Reporter:
Device:
Browser:
Usuario logueado: sí (tipo de usuario o username)/no
País: AR/EC/CO/PE
URL:
Pasos para replicar:
Screenshot (si tiene sentido y es viable):
require "html_builder"
html = HTML.build do
link(href: "http://crystal-lang.org") do
text "Crystal is awesome"
end
end
# Statically serve all files in .well-known, which is the location where letsencrypt stores the proof file
location /.well-known/ {
root /var/www/{{ $host }};
}
# And proxy_pass all the remaining requests as usual
location / {
proxy_pass http://{{ $host }};
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
dependencies:
cache_directories:
- "crystal-0.17.4-1"
pre:
- if [[ ! -e crystal-0.17.4-1 ]]; then wget https://github.com/crystal-lang/crystal/releases/download/0.17.4/crystal-0.17.4-1-linux-x86_64.tar.gz && tar xvfz crystal-0.17.4-1-linux-x86_64.tar.gz; fi
test:
pre:
- crystal-0.17.4-1/bin/crystal deps
override:
- crystal-0.17.4-1/bin/crystal spec