File tree 4 files changed +36
-1
lines changed
vagrant/provisioning/roles/mystamps-nginx/tasks
4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ server {
20
20
try_files /503.$lang.html =502;
21
21
}
22
22
23
+ location /image/ {
24
+ return 301 https://stamps.filezz.ru$request_uri;
25
+ }
26
+
27
+ location ~* \.(ico|css|js)$ {
28
+ return 301 https://stamps.filezz.ru$request_uri;
29
+ }
30
+
23
31
location / {
24
32
error_page 502 =503 @maintenance;
25
33
proxy_set_header X-Forwarded-For $remote_addr;
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 443;
3
+ server_name stamps.filezz.ru;
4
+ server_tokens off;
5
+ error_log /data/logs/nginx-static.log notice;
6
+ proxy_buffers 128 4k;
7
+
8
+ ssl on;
9
+ ssl_certificate /etc/ssl/my-stamps.ru.crt;
10
+ ssl_certificate_key /etc/ssl/my-stamps.ru.key;
11
+
12
+ location / {
13
+ return 301 https://my-stamps.ru;
14
+ }
15
+
16
+ location /image/ {
17
+ proxy_set_header X-Forwarded-For $remote_addr;
18
+ proxy_pass http://127.0.0.1:8080;
19
+ }
20
+
21
+ location ~* \.(ico|css|js)$ {
22
+ proxy_set_header X-Forwarded-For $remote_addr;
23
+ proxy_pass http://127.0.0.1:8080;
24
+ }
25
+
26
+ }
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 = PUBLIC_URL ;
32
+ public static final String STATIC_RESOURCES_URL = "https://stamps.filezz.ru" ;
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" ;
Original file line number Diff line number Diff line change 27
27
with_items :
28
28
- mystamps-http.conf
29
29
- mystamps-ssl.conf
30
+ - mystamps-static.conf
30
31
notify :
31
32
- Restarting nginx service
32
33
You can’t perform that action at this time.
0 commit comments