Revize 33786d3b
Přidáno uživatelem Tomáš Ballák před téměř 5 roky(ů)
docker-compose-prod.yml | ||
---|---|---|
11 | 11 |
- /etc/certificate:/certificate |
12 | 12 |
- ./docker/nginx/sites:/etc/nginx/sites-available |
13 | 13 |
- /acme-challenge:/var/www/symfony/public/.well-known/acme-challenge/ |
14 |
- /logs/nginx:/var/log/nginx |
|
14 | 15 |
crawler: |
15 | 16 |
volumes: |
16 | 17 |
- /logs/crawler:/src/CrawlerLogs |
docker-compose.yml | ||
---|---|---|
40 | 40 |
ports: |
41 | 41 |
- "80:80" |
42 | 42 |
volumes: |
43 |
- ./logs/nginx:/var/nginx/log
|
|
43 |
- ./logs/nginx:/var/log/nginx
|
|
44 | 44 |
- ./website/:/var/www/symfony |
45 | 45 |
- ./docker/nginx/sites:/etc/nginx/sites-available |
46 | 46 |
|
docker/nginx/nginx.conf | ||
---|---|---|
1 |
user nginx;
|
|
2 |
worker_processes 4;
|
|
1 |
user nginx; |
|
2 |
worker_processes 4; |
|
3 | 3 |
daemon off; |
4 | 4 |
|
5 |
error_log /var/log/nginx/error.log warn;
|
|
6 |
pid /var/run/nginx.pid;
|
|
5 |
error_log /var/log/nginx/error.log warn; |
|
6 |
pid /var/run/nginx.pid; |
|
7 | 7 |
|
8 | 8 |
events { |
9 |
worker_connections 1024;
|
|
9 |
worker_connections 1024; |
|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
|
13 | 13 |
http { |
14 |
include /etc/nginx/mime.types;
|
|
15 |
default_type application/octet-stream;
|
|
16 |
access_log /var/log/nginx/access.log;
|
|
17 |
sendfile on;
|
|
18 |
keepalive_timeout 65;
|
|
14 |
include /etc/nginx/mime.types; |
|
15 |
default_type application/octet-stream; |
|
16 |
access_log /var/log/nginx/access.log; |
|
17 |
sendfile on; |
|
18 |
keepalive_timeout 65; |
|
19 | 19 |
|
20 | 20 |
include /etc/nginx/conf.d/*.conf; |
21 | 21 |
include /etc/nginx/sites-available/*.conf; |
docker/nginx/sites/default.conf | ||
---|---|---|
1 |
server { |
|
2 |
listen 80; |
|
3 |
listen [::]:80; |
|
4 |
server_name heatmap.zcu.cz www.heatmap.zcu.cz; |
|
5 |
|
|
6 |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. |
|
7 |
return 301 https://$server_name$request_uri; |
|
8 |
} |
|
1 | 9 |
server { |
2 | 10 |
listen 443 ssl; |
3 | 11 |
listen 80 default_server; |
... | ... | |
34 | 42 |
deny all; |
35 | 43 |
} |
36 | 44 |
} |
37 |
server { |
|
38 |
listen 80; |
|
39 |
listen [::]:80; |
|
40 |
server_name heatmap.zcu.cz www.heatmap.zcu.cz; |
|
41 |
|
|
42 |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. |
|
43 |
return 301 https://$server_name$request_uri; |
|
44 |
} |
Také k dispozici: Unified diff
fix #2