Jump to content



  • Posts

  • Joined

  • Last visited

About Dunkstormen

Recent Profile Visitors

301 profile views

Dunkstormen's Achievements

  1. Anyone having some experience with NGINX and can help me setting up my API location, so I can pass the API Token using headers rather than as a part of the URL? Have been looking on sites like Stackoverflow for a potential solution, yet none of the suggestions has worked. The exact message I get is the one on the attached image. upstream php_backend { server unix:/var/run/php-fpm_webapp.sock; } server { # Basic server configuration listen 443 ssl; server_name XXXXXXXXXX XXXXXXXXXX; include snippets/self-signed.conf; include snippets/ssl-params.conf; include snippets/real_ip_cf.conf; root XXXXXXXXXX; index index.php; # Maximum allowed upload size client_max_body_size 100M; # Logging access_log XXXXXXXXXX/access.log main; error_log XXXXXXXXXX/error.log error; # Friendly URL "rewrite" rules location / { try_files $uri $uri/ @ips; } # 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; # 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 IPS' 404 handler try_files $uri @ips404; access_log off; expires 2w; } # Lock down access to the AdminCP location ~ ^/admin/.+\.php$ { #allow; #deny all; #auth_basic "This page is restricted to administrators"; #auth_basic_user_file $document_root/admin/.htpasswd; try_files $uri @ips404; include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend; } # Execute the requested PHP script if it exists, otherwise pass off to IPS location ~ \.php$ { try_files $uri @ips; include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend; fastcgi_buffers 38 4k; fastcgi_buffer_size 16k; } # Pass off not found errors to IPS' 404 handler location @ips404 { include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend; fastcgi_param SCRIPT_FILENAME $document_root/404error.php; fastcgi_param SCRIPT_NAME 404error.php; } # Send rewritten requests directly to IPS location @ips { include /etc/nginx/includes/php_fastcgi_params; fastcgi_pass php_backend; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_param SCRIPT_NAME /index.php; fastcgi_buffers 38 4k; fastcgi_buffer_size 16k; } # IPS API location /api/ { try_files $uri $uri/ @api; } # IPS API LOCATION location @api { rewrite ^ /api/index.php?$args last; } } server { listen 80; server_name XXXXXXXXXX XXXXXXXXXXX; return 302 https://$server_name$request_uri; } Some information has been replaced with "XXXXXXXXXX" due privacy/security.
  2. Makes sense. The only real issue that triggers my OCD is the logs on a users profile get filled for every time the get a new token which introduces a lot of clutter that could make it harder to see other stuff like group changes etc. I guess a solution would be to have some other auth solution up front and then only require the users to authenticate with the oAuth client once. And then use the refresh_token to keep the auth_token up to date. Unless there is some sort of workaround within the forum software itself to declutter it.
  3. Hi. We currently use your forms application on our forum. But I've come across a copyright footer that messes up the entire forms page making it able to scroll to the left. Any suggestions on how to fix this? Perhaps you can tell where the footer is so I can style it correctly?
  4. I'm aware of that. However whenever they sign out and sign in again it creates a new token for them so they end up having two and so it continues. Is there any way I can prevent that if I already got a token stored? As it fills up the logs on a users profile for every time they sign in to the external application. Is it possible to determine which user that is attempting to sign in before a new access token is exchanged?
  5. So I've thought of using IPSs oauth system to authenticate users in an external web app. However in my last attempt to do it I ended up with the web app generating a new access token everytime a user signed in. Is that the behaviour I should expect or is there any way to get around it as it would be annoying to look at 100+ authentications tokens per user of the app. If it helps in getting a more precise answer, then I'm planning on using Laravel with its socialite package.
  6. Hi. So I've recently decided to give the developer tools a try as I'm planning on creating an application for IP.Board. However in my attempt to install the tools and configuring the forum to use them I'm having some issues. After installing the developer tools provided by Invision and switching the forum into developer mode I'm receiving the following error message. Whoops \ Exception \ ErrorException (E_USER_ERROR) You have used a function (func_get_args) that should be called from the root namespace for performance reasons (/var/www/web/init.php(820) : eval()'d code::105). The forum installation is a fresh installation which is not running any plugins/applications. The only thing that has been changed is the theme of the forum. Does anyone have any suggestions as to what that potentially could be causing this issue and maybe even have a fix for it? NOTE: I've also tried a new fresh install locally on my own PC using the test key Invision provides but with no luck. Getting the same error on that installation.
  7. Just a bit of curiosity. When do you estimate your themes to be compatible with 4.4.0?

    1. ehren.


      I plan on having the updates out over the next 12 hours 🙂

  8. Holy... I used to use Ahmad's old TeamSpeak Intergration. But bought this as soon as I saw it! This is more or less the exact plugin/app I've been looking for. However, is it on purpose that groups associated with a group on the forum doesn't get revoked when removing the UUID of the user? Would be nice if the user suddenly decides to remove his UUID. Since that would allow him/her to use his powers regardless of what groups he/she has on the forum and also making it harder to identify them. Another thing that could be awesome is support for channel groups based on groups on the forum. Instead of having to parse privilege keys around.
  9. Hi IC Community, I've recently made a PHP script to query my gameservers for their current status using the built-in blocks feature in IP.Pages. However all the HTML I'm using is outputted using echo statements. Is it possible in any way to parse it like normal HTML code, instead of having multiple echo statements?
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy