files.com 1.0.215 → 1.0.216
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +4 -0
- data/lib/files.com/models/site.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84a82c25b2862f5c1c9c32ea3d0ac4e3865b0a5cd8d39cf6474980cb16fd6934
|
4
|
+
data.tar.gz: 50b1bd508a5e4c8f16f6a97c67abe0157cf75ab2bf1ba6e86a8a371057db71d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a9accfbbe5acde823d3ca00833c5263702c60f66e7b99c48cdd87d6c9c14ba06679204fd76998097c13363f57799e685cf42840c20cc59a52ad157821cb7cd1
|
7
|
+
data.tar.gz: ec66f0e2efa44fb3934d4ce1b1efadff43c7e5a3cf68b11c2b1778a2023e783152da18e6e297f99b9d6d81e726dc6042c69a770610e0032286dad84c57edd15d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.216
|
data/docs/site.md
CHANGED
@@ -43,6 +43,7 @@
|
|
43
43
|
"disable_notifications": true,
|
44
44
|
"disable_password_reset": true,
|
45
45
|
"domain": "my-custom-domain.com",
|
46
|
+
"domain_hsts_header": true,
|
46
47
|
"email": "john.doe@files.com",
|
47
48
|
"ftp_enabled": true,
|
48
49
|
"reply_to_email": "jane.doe@files.com",
|
@@ -256,6 +257,7 @@
|
|
256
257
|
* `disable_notifications` (boolean): Are notifications disabled?
|
257
258
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
258
259
|
* `domain` (string): Custom domain
|
260
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
259
261
|
* `email` (email): Main email for this site
|
260
262
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
261
263
|
* `reply_to_email` (email): Reply-to email for this site
|
@@ -373,6 +375,7 @@ Files::Site.update(
|
|
373
375
|
name: "My Site",
|
374
376
|
subdomain: "mysite",
|
375
377
|
domain: "my-custom-domain.com",
|
378
|
+
domain_hsts_header: true,
|
376
379
|
email: "john.doe@files.com",
|
377
380
|
reply_to_email: "jane.doe@files.com",
|
378
381
|
allow_bundle_names: true,
|
@@ -475,6 +478,7 @@ Files::Site.update(
|
|
475
478
|
* `name` (string): Site name
|
476
479
|
* `subdomain` (string): Site subdomain
|
477
480
|
* `domain` (string): Custom domain
|
481
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
478
482
|
* `email` (string): Main email for this site
|
479
483
|
* `reply_to_email` (string): Reply-to email for this site
|
480
484
|
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
@@ -189,6 +189,11 @@ module Files
|
|
189
189
|
@attributes[:domain]
|
190
190
|
end
|
191
191
|
|
192
|
+
# boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
193
|
+
def domain_hsts_header
|
194
|
+
@attributes[:domain_hsts_header]
|
195
|
+
end
|
196
|
+
|
192
197
|
# email - Main email for this site
|
193
198
|
def email
|
194
199
|
@attributes[:email]
|
@@ -643,6 +648,7 @@ module Files
|
|
643
648
|
# name - string - Site name
|
644
649
|
# subdomain - string - Site subdomain
|
645
650
|
# domain - string - Custom domain
|
651
|
+
# domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
646
652
|
# email - string - Main email for this site
|
647
653
|
# reply_to_email - string - Reply-to email for this site
|
648
654
|
# allow_bundle_names - boolean - Are manual Bundle names allowed?
|