Page Menu
Home
Miraheze
Search
Configure Global Search
Log In
Paste
P202
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Paladox
on May 17 2019, 16:35.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F945001: raw.txt
May 17 2019, 16:35
2019-05-17 16:35:05 (UTC+0)
Subscribers
None
server {
listen 80;
listen [::]:80;
server_name <%= @server_name %>;
root /usr/share/nginx/www;
location /php_status {
access_log off;
allow 127.0.0.1;
include fastcgi_params;
fastcgi_pass unix:/run/php/fpm-www.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /.well-known/acme-challenge/ {
alias /var/www/challenges/;
try_files $uri =404;
}
location / {
return 301 https://<%= @server_name %>/;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <%= @server_name %>;
root /usr/share/nginx/www;
ssl_certificate /etc/ssl/certs/wildcard.miraheze.org.crt;
ssl_certificate_key /etc/ssl/private/wildcard.miraheze.org.key;
ssl_trusted_certificate /etc/ssl/certs/GlobalSign.crt;
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
location / {
proxy_pass http://localhost:3000/;
}
}
Event Timeline
Paladox
created this paste.
May 17 2019, 16:35
2019-05-17 16:35:05 (UTC+0)
Log In to Comment