Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96e96ba
commit 9128602
Showing
3 changed files
with
49 additions
and
92 deletions.
There are no files selected for viewing
91 changes: 0 additions & 91 deletions
91
ansible/roles/nginx/files/etc/nginx/sites-available/default
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
ansible/roles/nginx/files/etc/nginx/sites-enabled/isupipe.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
server { | ||
listen 80 default_server; | ||
server_name _; | ||
index index.html index.htm index.nginx-debian.html; | ||
root /var/www/html; | ||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl default_server; | ||
server_name _; | ||
index index.html index.htm index.nginx-debian.html; | ||
root /var/www/html; | ||
|
||
# bot避けのためのvhostで、この証明書は有効期限がきれています | ||
ssl_certificate /etc/nginx/tls/_.t.isucon.dev.crt; | ||
ssl_certificate_key /etc/nginx/tls/_.t.isucon.dev.key; | ||
ssl_protocols TLSv1.3; | ||
ssl_prefer_server_ciphers off; | ||
|
||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name u.isucon.dev; | ||
server_name *.u.isucon.dev; | ||
|
||
ssl_certificate /etc/nginx/tls/_.u.isucon.dev.crt; | ||
ssl_certificate_key /etc/nginx/tls/_.u.isucon.dev.key; | ||
|
||
ssl_protocols TLSv1.3; | ||
ssl_prefer_server_ciphers off; | ||
|
||
client_max_body_size 10m; | ||
root /home/isucon/webapp/public/; | ||
location / { | ||
try_files $uri /index.html; | ||
} | ||
location /api { | ||
proxy_set_header Host $host; | ||
proxy_pass http://localhost:8080; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters