File tree 3 files changed +6
-31
lines changed
3 files changed +6
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,25 +4,21 @@ map $http_accept_language $lang {
4
4
}
5
5
6
6
server {
7
- listen 80 default_server;
7
+ listen 443 default_server;
8
8
server_name my-stamps.ru www.my-stamps.ru;
9
9
server_tokens off;
10
10
error_log /data/logs/nginx.log notice;
11
11
12
+ ssl on;
13
+ ssl_certificate /etc/ssl/my-stamps.ru.crt;
14
+ ssl_certificate_key /etc/ssl/my-stamps.ru.key;
15
+
12
16
location @maintenance {
13
17
root /data/nginx;
14
18
add_header Retry-After 180 always; # 3 min
15
19
try_files /503.$lang.html =502;
16
20
}
17
21
18
- location /image/ {
19
- return 301 http://stamps.filezz.ru$request_uri;
20
- }
21
-
22
- location ~* \.(ico|css|js)$ {
23
- return 301 http://stamps.filezz.ru$request_uri;
24
- }
25
-
26
22
location / {
27
23
error_page 502 =503 @maintenance;
28
24
proxy_set_header X-Forwarded-For $remote_addr;
Original file line number Diff line number Diff line change 29
29
*/
30
30
public final class Url {
31
31
public static final String PUBLIC_URL = "https://my-stamps.ru" ;
32
- public static final String STATIC_RESOURCES_URL = "http://stamps.filezz.ru" ;
32
+ public static final String STATIC_RESOURCES_URL = PUBLIC_URL ;
33
33
34
34
// defined at pom.xml (and used by functional tests only)
35
35
public static final String SITE = "http://127.0.0.1:8080" ;
You can’t perform that action at this time.
0 commit comments