-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some more random configs for caddy
- Loading branch information
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
:80, jobfair.loc:80 { | ||
:80, jobfair.loc:80, jobfair.saturn.ji0.li:80 { | ||
reverse_proxy /api/* localhost:3001 | ||
reverse_proxy localhost:3000 | ||
header -Server | ||
header -X-Powered-By | ||
} | ||
|
||
prod-api.jobfair.loc:80 { | ||
reverse_proxy /api/* https://jobfair.fer.unizg.hr { | ||
header_up Host jobfair.fer.unizg.hr | ||
header_up X-Real-IP {remote} | ||
header_down Access-Control-Allow-Origin http://jobfair.loc | ||
header_down Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" | ||
header_down Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" | ||
header_down Access-Control-Allow-Credentials true | ||
transport http { | ||
tls_insecure_skip_verify | ||
} | ||
} | ||
reverse_proxy localhost:3000 | ||
header -Server | ||
header -X-Powered-By | ||
} |