Jump to content


  • Content count

  • Donations

    704.11 USD 
  • Joined

  • Last visited

  • Days Won


ctark last won the day on November 12 2016

ctark had the most liked content!


About ctark

  • Rank
    Sir Post-A-Lot
  • Birthday 09/14/1991

Profile Information

  • Gender
  • Location
    Toronto, Ontario, Canada
  • Interests
    Elevators, Computers, Electronics, Gaming.

Recent Profile Visitors

11362 profile views
  1. ctark

    Happy birthday dear Weeb-Chan-Sama

    Happy Birthday @Junzou!
  2. ctark

    Gaming Community Central Partnership

    Looking forward to interacting with other communities and hopefully getting our name out there for newer players! Good work guys
  3. ctark

    Help With Nginx, Domain, and Reverse DNS

    If you are gonna necro posts, you should at least bribe us 'staff' with rep....
  4. ctark

    Thanks Junzou!!!

    I played the first one, it was a great game! (and screen saver)
  5. ctark

    Star Wars: The Last Jedi Trailer

    I actually felt the opposite. Usually I don't like watching trailers as they give away all the best parts of the movie. This one though, I thought showed just enough to make me wonder what was going to happen in each scene, without telling me what will actually happen (sure a few you can guess, but there's always the possibility for twists in there, too). Either way, looks good, i'll def be watching it in theaters!
  6. ctark

    New donation from ☠Valiant☠

    Thanks for the donation!
  7. ctark

    Community Digest - 10/8/17

    Congrats to all new and promoted staff and especially to @Moose! A well deserved promotion!
  8. ctark

    Staff Changes 9/17/17

    Congrats Guys!
  9. ctark

    Help With Nginx, Domain, and Reverse DNS

    Taken from the safe.moe website: server { listen 80; listen [::]:80; server_name safe.moe; # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. return 301 https://$server_name$request_uri; } server { listen [::]:443 ssl http2; listen 443 ssl http2; server_name safe.moe; ssl_certificate /etc/letsencrypt/live/safe.moe/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/safe.moe/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/safe.moe/fullchain.pem; #Security include /etc/nginx/ssl/ssl-params.conf; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_set_header X-Forwarded-Proto $scheme; } location /transparency { root /srv/cuntflaps.me/html; autoindex on; default_type text/plain; } location ~ /mail { root /srv/cuntflaps.me/html; index index.php index.html; try_files $uri $uri/ =404; location ~ .php$ { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } location ~ /grill { root /srv/cuntflaps.me/html; index index.php index.html; try_files $uri $uri/ =404; location ~ .php$ { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } } Obviously those last 3 "location" tags aren't needed, as they are specific for that site, but it's a cool, real life example of how they setup sublocation on the site. for example, going to "https://safe.moe/transparency/" would bring you to the "location ~ /transparency { " block, and follow that stuff. The first server block listens to all non SSL traffic on port 80, and redirects it to use https. If you don't want this, then just remove it and change the second server block to listen on port 80 instead. Comment / remove the lets encrypt info if you don't have ssl setup...
  10. ctark

    Help With Nginx, Domain, and Reverse DNS

    you want to pm me your default file, and I'll try to explain without using generic examples? also, damn it, I thought I edited out all the "ctark.com" references... fml
  11. ctark

    Help With Nginx, Domain, and Reverse DNS

    so personally I would put each sub domain under a new file instead of under the location block of the default file. I have something like: (assuming you are Linux, if not, it's pretty much the same structure but different start folder) /etc/nginx/sites-available - This is where all your sites are. /etc/nginx/sites-enabled - This is where the active sites are, symlink or shortcut from modules-available /etc/nginx/sites-available/lolisafe - This is the file for the lolisafe.hostname.com domain Here is an example of my config for site abc.hostname.com (don't just copy it, but use it as an example (it's probably not the best, but it shows you a good starting point)) upstream php_backend_abc { server unix:/var/run/php-fpm_webapp.sock; } server { # Basic server configuration listen 80; server_name abc.hostname.com; root /srv/http/hostname.com/abc/html/; index doku.php index.php index.html; # Maximum allowed upload size client_max_body_size 100M; include /etc/nginx/conf.d/mime.types; # Logging #access_log /srv/http/yourdomain.com/root/logs/access.log.gz combined gzip flush=5m; error_log /srv/http/hostname.com/abc/logs/error.log error; # Friendly URL "rewrite" rules location / { try_files $uri $uri/ @webapp; } # Allow access to the letsencrypt ACME Challenge location ~ /\.well-known\/acme-challenge { allow all; } # Configuration includes include /etc/nginx/includes/ips/protect_upload_directories; include /etc/nginx/includes/deny_dotfiles; include /etc/nginx/includes/stub_status; include /etc/nginx/includes/php_fpm_status; location ~ /(data|conf|bin|inc)/ { deny all; } location ~ ^/wiki/(|lib/(exe|plugins/[^/]+)/)[^/]+\.php { include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend_abc; # fastcgi_param SCRIPT_FILENAME $document_root/index.php; # fastcgi_param SCRIPT_NAME /index.php; # fastcgi_buffers 38 4k; # fastcgi_buffer_size 16k; } location ~ /(data|conf|bin|inc)/ { deny all; } # Assign cache headers to static files location ~* ^.+\.(?:jpg|jpeg|gif|css|png|js|ico|xml|htm|swf|cur)$ { # If the static resource doesn't exist, pass off to webapp' 404 handler try_files $uri @webapp404; access_log off; expires 2w; } # Execute the requested PHP script if it exists, otherwise pass off to webapp location ~ \.php$ { try_files $uri @webapp; include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend_abc; fastcgi_buffers 38 4k; fastcgi_buffer_size 16k; } # Pass off not found errors to webapp' 404 handler location @webapp404 { include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend_abc; fastcgi_param SCRIPT_FILENAME $document_root/404error.php; fastcgi_param SCRIPT_NAME 404error.php; } # Send rewritten requests directly to webapp location @webapp { include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend_abc; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_param SCRIPT_NAME /index.php; fastcgi_buffers 38 4k; fastcgi_buffer_size 16k; } } So few things, I use a websock for php, each sub site should be on it's own upstream, but can share the same socket. Maybe you can guess, this config is for doku wiki. Although this site doesn't have ssl, all of my other's do, hence the letsencrypt location (hint, just copy the "server {" block a second time, and change the port to 443 to serve both ssl and non ssl on the same subdomain. My files are saved under: "/srv/http/hostname.com/abc/html/" This is my php socket config, located under "/etc/php/7.0/fpm/pool.d/webapp.conf" [webapp] ;;;;;;;;;;;;;;;;;;;;; ; FPM Configuration ; ;;;;;;;;;;;;;;;;;;;;; ; Basic settings prefix = /var/run user = www-data group = www-data listen = php-fpm_webapp.sock listen.owner = www-data listen.group = www-data listen.mode = 0660 ; Process manager configuration pm = dynamic pm.max_children = 40 pm.start_servers = 12 pm.min_spare_servers = 2 pm.max_spare_servers = 20 pm.max_requests = 500 pm.status_path = /php_fpm_status ; Log slow requests (used for performance tuning, 0 = Off) request_slowlog_timeout = 0 slowlog = /srv/http/hostname.com/www/logs/php_slow.log ; Terminate unresponsive requests, this should match PHP's max_execution_timeout at a minimum request_terminate_timeout = 60s ; Don't allow executing arbitrary files as PHP scripts. YOU SHOULD NEVER DISABLE THIS. security.limit_extensions = .php ;;;;;;;;;;;;;;;;;;;;; ; PHP Configuration ; ;;;;;;;;;;;;;;;;;;;;; ; Make sure errors are not displayed publicly, error logging can be enabled as needed php_flag[display_errors] = off php_admin_flag[log_errors] = off php_admin_value[error_log] = /srv/http/hostname/www/logs/php_error.log ; Set the maximum upload size, memory limit and execution timeout php_admin_value[upload_max_filesize] = 100M php_admin_value[post_max_size] = 100M php_admin_value[memory_limit] = 128M php_admin_value[max_execution_time] = 60 ; PHP security directives, adjust open_basedir appropriately php_admin_value[cgi.fix_pathinfo] = 0 php_admin_value[disable_functions] = system,popen,proc_open,shell_exec php_admin_value[open_basedir] = /tmp/:/usr/bin/:/srv/http/hostname.com/www/html:/srv/http/hostname.com/ghi/html:/srv/http/hostname.com/def/html:/srv/http/hostname.com/abc/html Last line is important, update this with the location of your files you want to be able to be executed. Try to limit this as much as possible, allowing everything is a huge security risk. Things to note, I was lazy and didn't want to make lots of these files, so my "abc" subdomain php logs will go into the same file as all the other sites that use this socket. If you want separate php logs, you should have a separate socket for each subdomain. Final thoughts, binding different sites to different ports gets messy if they are all listening on the same ip / hostname (or wildcard ip if you haven't specified) If nothing else, have different server blocks inside your default file, for each subdomain block. Hopefully this helps and driz doesn't shit on me.
  12. ctark

    Free Speech

    Just something to stimulate the conversation again...
  13. ctark

    Regarding Jailbreak...

    So last time I played a few days of JB, all that happened is every round T's rebelled, and the round ended in a few minutes. Next round, T's rebelled, and the round ended in a few minutes. Guess what happened the next round? This went on for 3 maps, where almost every round was boring because just as we got out of cell block to do something fun, all the CT's were dead. I know at that time we had a few bad CT's, but we also had a few good T's, that knew the map and how to aim. Ultimately I don't think anyone but the couple T's always rebelling were actually having fun that day. What we really need are a few good personalities that make the game fun. My favorite memories of the server were when warden monkeh would be on. They were complete shitshow rounds, but they were always fun. T's need to start playing the games, and CT's need to start herding the T's instead of just trying to kill them ASAP. Somewhere down the line it became, how fast can we kill each other, and people stopped playing for the server games, and played for the kills.
  14. ctark

    Step down thread [Denied]

    Thanks for all the work you put into bettering the servers. Hope your real life stuff works out!
  15. ctark

    Mouse and Mouse-pad

    I personally have the Logitech G9 Mouse (along with the G19 Keyboard and G930 Headphones (if I was to buy the headphones again I would go with the corded or ones that have wireless charging because plugging them in takes like 5 seconds and I always forget) ) I personally like the G9, it has adjustable weights and grips. 2 buttons on the side, scroll wheel tilt buttons, and adjustable DPI that are easy to hit while gaming (but not so easy you hit them by accident).