Skip to content

Commit

Permalink
Bootcamp tweaks (#7113)
Browse files Browse the repository at this point in the history
* Fix missing image

* Squoosh images

* Add bootcamp block
  • Loading branch information
iHiD authored Oct 30, 2024
1 parent e21b60c commit bd43def
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/css/packs/bootcamp.css
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ section#faqs {
.background {
@apply absolute inset-0;
background-color: white;
background-image: url("grid-dark.svg");
background-image: url("bootcamp/grid-dark.svg");
@apply bg-repeat;
background-size: 1000px;
background-position: top center;
Expand Down
Binary file modified app/images/bootcamp/certificate-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/interface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/left-bg-decor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/loretta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/part-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/part-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/portfolio-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-breakout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-piano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-positive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-snake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-tetris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-tic-tac-toe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bootcamp/project-weather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 37 additions & 1 deletion docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,43 @@ http {
}
}

server {
listen 80;
server_name bootcamp.exercism.org;

location / {
# Reject requests with unsupported HTTP method
if ($request_method !~ ^(GET|POST|HEAD|OPTIONS|PUT|DELETE|PATCH)$) {
return 405;
}

# Rewrite to go to api path
rewrite /(.*) /bootcamp/$1 break;

# Only requests matching the whitelist expectations will
# get sent to the application server
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache_bypass $http_upgrade;
}

location /favicon.ico {
return 404;
log_not_found off;
access_log off;
}

location /apple-touch-icon {
return 404;
log_not_found off;
access_log off;
}
}

server {
listen 80;
server_name api.exercism.org api.exercism.io;
Expand All @@ -85,7 +122,6 @@ http {
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_cache_bypass $http_upgrade;

}

location /favicon.ico {
Expand Down

0 comments on commit bd43def

Please sign in to comment.