Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
confighttp.h File Reference

Declarations for the Web UI Config HTTP server. More...

#include <functional>
#include <string>
#include "thread_safe.h"
Include dependency graph for confighttp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WEB_DIR   SUNSHINE_ASSETS_DIR "/web/"
 

Functions

void confighttp::start ()
 

Variables

const std::map< std::string, std::string > mime_types
 
constexpr auto confighttp::PORT_HTTPS = 1
 

Detailed Description

Declarations for the Web UI Config HTTP server.

Variable Documentation

◆ mime_types

const std::map<std::string, std::string> mime_types
Initial value:
= {
{ "css", "text/css" },
{ "gif", "image/gif" },
{ "htm", "text/html" },
{ "html", "text/html" },
{ "ico", "image/x-icon" },
{ "jpeg", "image/jpeg" },
{ "jpg", "image/jpeg" },
{ "js", "application/javascript" },
{ "json", "application/json" },
{ "png", "image/png" },
{ "svg", "image/svg+xml" },
{ "ttf", "font/ttf" },
{ "txt", "text/plain" },
{ "woff2", "font/woff2" },
{ "xml", "text/xml" },
}