Open lunaiwa opened 8 months ago
JWT Cookie > Authentication >
Security Config Rules:
Rules:
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
// Permit all requests to "/public/**"
.antMatchers("/public/**").permitAll()
// Require authentication for other requests
.anyRequest().authenticated()
.and()
.formLogin()
// Customize login page and login processing URL if needed
.loginPage("/login")
.permitAll()
.and()
.logout()
.permitAll();
}
}
POJO: "Plain Old Java Object"
POJO Characteristics:
To Change POJO
Docker:
Commands to make Docker update:
Reverse Proxy
Server Name: Server name in Nginx specifies the domain name associated with server block
Reverse Proxy: Nginx is used as the reverse proxy to forward the cilent requests to backend servers
Proxy Pass: Used to define the backend server address > requests forwarded there
0.9