mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-02 06:02:28 +00:00
* Many bug fixes and performance enhancements * Fix warnings and speed up photos with me * Finish refactoring user serialization * Finish refactoring user serialization Use GameTokens instead of User when possible Prevent negative page sizes * Fix debug compilation * Add gzip compression to example nginx config * Remove deflate changes * Add UsernameFromWebToken Co-authored-by: Jayden <jvyden@jvyden.xyz>
61 lines
2.2 KiB
Text
61 lines
2.2 KiB
Text
# Normal server
|
|
server {
|
|
server_name example.com resa.example.com resb.example.com resc.example.com resd.example.com rese.example.com resf.example.com res1.example.com res2.example.com res3.example.com res4.example.com res5.example.com res6.example.com res7.example.com res8.example.com res9.example.com res0.example.com;
|
|
|
|
# SSL Configuration
|
|
listen 443 ssl;
|
|
|
|
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
|
ssl_ciphers ALL;
|
|
ssl_prefer_server_ciphers off;
|
|
|
|
# Enable gzip Compression
|
|
gzip on;
|
|
gzip_types *;
|
|
gzip_http_version 1.1;
|
|
gzip_min_length 100;
|
|
|
|
# Server locations
|
|
# Technically, the ports dont follow standards,
|
|
# but they're bad standards so who cares.
|
|
#
|
|
# /: Website server (10060)
|
|
# /LITTLEBIGPLANETPS3_XML/: Gameserver (10061)
|
|
# /api/: API server (10062)
|
|
location / {
|
|
proxy_http_version 1.1;
|
|
proxy_pass http://127.0.0.1:10060;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /LITTLEBIGPLANETPS3_XML/ {
|
|
proxy_http_version 1.1;
|
|
proxy_pass http://127.0.0.1:10061;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_http_version 1.1;
|
|
proxy_pass http://127.0.0.1:10062;
|
|
}
|
|
|
|
keepalive_timeout 0;
|
|
}
|
|
|
|
# HTTPS redirection
|
|
server {
|
|
# Same server_name as above
|
|
server_name example.com resa.example.com resb.example.com resc.example.com resd.example.com rese.example.com resf.example.com res1.example.com res2.example.com res3.example.com res4.example.com res5.example.com res6.example.com res7.example.com res8.example.com res9.example.com res0.example.com;
|
|
listen 80;
|
|
|
|
location / {
|
|
return 301 https://example.com$request_uri;
|
|
}
|
|
|
|
# Pass through traffic to Gameserver as normal. Important for LBP1/2/PSP!!!!
|
|
location /LITTLEBIGPLANETPS3_XML/ {
|
|
proxy_http_version 1.1;
|
|
proxy_pass http://127.0.0.1:10061;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|