Open aidenhuynh opened 7 months ago
Describe the server name definition and the proxy paths definition in our reverse proxy configuration file
These terms can be found in this code example
server {
listen 80;
listen [::]:80;
server_name -----.stu.nighthawkcodingsociety.com ; # Change server name to the one on R53
# Configure CORS Headers
location / {
proxy_pass http://localhost:8---; # Change port to port on docker
# Simple requests
if ($request_method ~* "(GET|POST|PUT|DELETE)") { # Customize Request methods based on your needs
add_header "Access-Control-Allow-Origin" *;
}
# Preflighted requests
if ($request_method = OPTIONS ) {
add_header "Access-Control-Allow-Origin"
add_header "Access-Control-Allow-Methods" "GET, POST, PUT, DELETE, OPTIONS, HEAD"; # Make sure the request methods above match here
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
return 200;
}
}
}
Server name defines the domain we want to use
Proxy pass forwards the request, in this case to the local backend on the aws machine, which is where the backend is being run.
Show a JWT login process, split browser screen to show a page with authentication and shows a cookie
Request matchers that shows a permit and one that shows authentication required.
Permissions for Admin include deleting other users
Show POJO changes in VSCode and with Postman
You can change parts of the init to see changes in the sqlite database
Sequence of commands required for an application update
cd repo_name
(assuming you're already in deployments)docker-compose down
git pull
docker-compose up -d --build
docker ps
to check
Total Score: 3.55/4