Skip to content

Commit 215fc84

Browse files
completely removes origin_backend setting
1 parent a3cac9c commit 215fc84

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

crates/common/src/settings.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ pub struct AdServer {
2121
pub struct Publisher {
2222
pub domain: String,
2323
pub cookie_domain: String,
24-
#[deprecated(note = "Use origin_url instead - dynamic backends are created automatically")]
25-
pub origin_backend: String,
2624
pub origin_url: String,
2725
/// Secret used to encrypt/decrypt proxied URLs in `/first-party/proxy`.
2826
/// Keep this secret stable to allow existing links to decode.
@@ -39,7 +37,6 @@ impl Publisher {
3937
/// let publisher = Publisher {
4038
/// domain: "example.com".to_string(),
4139
/// cookie_domain: ".example.com".to_string(),
42-
/// origin_backend: "edgepubs_main_be".to_string(),
4340
/// origin_url: "https://origin.example.com:8080".to_string(),
4441
/// proxy_secret: "proxy-secret".to_string(),
4542
/// };
@@ -531,7 +528,6 @@ mod tests {
531528
let publisher = Publisher {
532529
domain: "example.com".to_string(),
533530
cookie_domain: ".example.com".to_string(),
534-
origin_backend: "publisher_origin".to_string(),
535531
origin_url: "https://origin.example.com:8080".to_string(),
536532
proxy_secret: "test-secret".to_string(),
537533
};
@@ -541,7 +537,6 @@ mod tests {
541537
let publisher = Publisher {
542538
domain: "example.com".to_string(),
543539
cookie_domain: ".example.com".to_string(),
544-
origin_backend: "publisher_origin".to_string(),
545540
origin_url: "https://origin.example.com".to_string(),
546541
proxy_secret: "test-secret".to_string(),
547542
};
@@ -551,7 +546,6 @@ mod tests {
551546
let publisher = Publisher {
552547
domain: "example.com".to_string(),
553548
cookie_domain: ".example.com".to_string(),
554-
origin_backend: "publisher_origin".to_string(),
555549
origin_url: "http://localhost:9090".to_string(),
556550
proxy_secret: "test-secret".to_string(),
557551
};
@@ -561,7 +555,6 @@ mod tests {
561555
let publisher = Publisher {
562556
domain: "example.com".to_string(),
563557
cookie_domain: ".example.com".to_string(),
564-
origin_backend: "publisher_origin".to_string(),
565558
origin_url: "localhost:9090".to_string(),
566559
proxy_secret: "test-secret".to_string(),
567560
};
@@ -571,7 +564,6 @@ mod tests {
571564
let publisher = Publisher {
572565
domain: "example.com".to_string(),
573566
cookie_domain: ".example.com".to_string(),
574-
origin_backend: "publisher_origin".to_string(),
575567
origin_url: "http://192.168.1.1:8080".to_string(),
576568
proxy_secret: "test-secret".to_string(),
577569
};
@@ -581,7 +573,6 @@ mod tests {
581573
let publisher = Publisher {
582574
domain: "example.com".to_string(),
583575
cookie_domain: ".example.com".to_string(),
584-
origin_backend: "publisher_origin".to_string(),
585576
origin_url: "http://[::1]:8080".to_string(),
586577
proxy_secret: "test-secret".to_string(),
587578
};

trusted-server.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ sync_url = "https://adapi-srv-eu.smartadserver.com/ac?pgid=2040327&fmtid=137675&
55
[publisher]
66
domain = "test-publisher.com"
77
cookie_domain = ".test-publisher.com"
8-
# DEPRECATED origin backend is now dynamically created
9-
origin_backend = "publisher_origin"
108
origin_url = "https://origin.test-publisher.com"
119
proxy_secret = "change-me-proxy-secret"
1210

0 commit comments

Comments
 (0)