Skip to content

Commit

Permalink
allowed origin
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Sep 2, 2024
1 parent a8b7c15 commit c97ac58
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,22 @@ githubBranch = master
githubBranch = ${?github_branch}
blogBackground = "https://lunatech.cdn.prismic.io/lunatech/c01fd6de48c3cdb8bda7247b0b94b84b14f3a488_kevin-horvat-1354011-unsplash.jpg"
blogBackground = ${?blog_background}
play.http.secret.key = ${?APPLICATION_SECRET}
play.http.secret.key=${?APPLICATION_SECRET}
cacheTtl = 3000 days
cacheTtl = ${?cache_ttl}
blogsPerPage = 24
blogsPerPage = ${?blogs_per_page}
play.filters.enabled += play.filters.hosts.AllowedHostsFilter
play.filters.hosts {
# Allow requests to example.com, its subdomains, and localhost:9000.
allowed = [
"localhost:9000",
"10.0.2.2:9000",
"127.0.0.1:8080",
"localhost:8080",
"lunatech-blog.cleverapps.io",
"app-4194741b-63fb-4618-b805-ff945b0be7eb.cleverapps.io",
".lunatech.com",
".lunatech.fr",
".lunatech.nl",
".lunatech.be",
]
allowed = ["localhost:9000","127.0.0.1:8080","localhost:8080", "lunatech-blog.cleverapps.io","app-4194741b-63fb-4618-b805-ff945b0be7eb.cleverapps.io", ".lunatech.com", ".lunatech.fr", ".lunatech.nl", ".lunatech.be"]
}
play.filters.enabled += "play.filters.cors.CORSFilter"
play.filters.cors {
allowedOrigins = [
"https://lunatech.com",
"https://www.lunatech.com",
"https://blog.lunatech.com",
]
allowedOrigins = ["https://lunatech.com", "https://www.lunatech.com", "https://acceptance.lunatech.com", "https://lunatech.fr", "https://www.lunatech.fr", "https://acceptance.lunatech.fr", "https://lunatech.nl", "https://www.lunatech.nl", "https://acceptance.lunatech.nl" ]
}
trustxforwarded = true
play.modules.enabled += "modules.StartModule"
play.ws.cache.enabled = true
play.ws.timeout.request = 360s
play.ws.timeout.idle = 360s

include "overrides.conf"

0 comments on commit c97ac58

Please sign in to comment.